From 9d6b6aa7b18c1ab511566fbcc4b5e2951fb39dc4 Mon Sep 17 00:00:00 2001 From: NotXia <35894453+NotXia@users.noreply.github.com> Date: Tue, 21 May 2024 09:41:24 +0200 Subject: [PATCH] Add Github url --- src/ainotes.cls | 2 +- src/year1/cognition-and-neuroscience/module1/cn1.tex | 1 + src/year1/cognition-and-neuroscience/module2/cn2.tex | 1 + .../module1/cdmo1.tex | 1 + .../module2/cdmo2.tex | 1 + src/year1/deep-learning/dl.tex | 1 + src/year1/fundamentals-of-ai-and-kr/module1/faikr1.tex | 1 + src/year1/fundamentals-of-ai-and-kr/module2/faikr2.tex | 1 + src/year1/fundamentals-of-ai-and-kr/module3/faikr3.tex | 1 + .../image-processing-and-computer-vision/module1/ipcv1.tex | 1 + .../image-processing-and-computer-vision/module2/ipcv2.tex | 1 + src/year1/languages-and-algorithms-for-ai/module2/laai2.tex | 1 + src/year1/languages-and-algorithms-for-ai/module3/laai3.tex | 1 + src/year1/machine-learning-and-data-mining/dm-ml.tex | 1 + .../statistical-and-mathematical-methods-for-ai/smm.tex | 1 + utils/compile.sh | 5 +++++ 16 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/ainotes.cls b/src/ainotes.cls index 76c3a0a..7763c7f 100644 --- a/src/ainotes.cls +++ b/src/ainotes.cls @@ -79,7 +79,7 @@ \centering \vspace*{\fill} \huge - \textbf{\@title}\\ + \href{\giturl}{\textbf{\@title}}\\ {\Large Last update: \lastupdate} \vspace*{\fill} diff --git a/src/year1/cognition-and-neuroscience/module1/cn1.tex b/src/year1/cognition-and-neuroscience/module1/cn1.tex index ef75214..ba922dd 100644 --- a/src/year1/cognition-and-neuroscience/module1/cn1.tex +++ b/src/year1/cognition-and-neuroscience/module1/cn1.tex @@ -3,6 +3,7 @@ \title{Cognition and Neuroscience\\(Module 1)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \DeclareAcronym{psp}{short=PSP, long=postsynaptic potential, long-plural=s} \DeclareAcronym{epsp}{short=EPSP, long=excitatory postsynaptic potential, long-plural=s} diff --git a/src/year1/cognition-and-neuroscience/module2/cn2.tex b/src/year1/cognition-and-neuroscience/module2/cn2.tex index 8d13bf7..4046b0e 100644 --- a/src/year1/cognition-and-neuroscience/module2/cn2.tex +++ b/src/year1/cognition-and-neuroscience/module2/cn2.tex @@ -5,6 +5,7 @@ \title{Cognition and Neuroscience\\(Module 2)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \newtheorem*{casestudy}{Case study} diff --git a/src/year1/combinatorial-decision-making-and-optimization/module1/cdmo1.tex b/src/year1/combinatorial-decision-making-and-optimization/module1/cdmo1.tex index 3d4e5c5..51f2c2c 100644 --- a/src/year1/combinatorial-decision-making-and-optimization/module1/cdmo1.tex +++ b/src/year1/combinatorial-decision-making-and-optimization/module1/cdmo1.tex @@ -3,6 +3,7 @@ \title{Combinatorial Decision Making\\and Optimization\\(Module 1)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/combinatorial-decision-making-and-optimization/module2/cdmo2.tex b/src/year1/combinatorial-decision-making-and-optimization/module2/cdmo2.tex index 0bc48c0..cd87a06 100644 --- a/src/year1/combinatorial-decision-making-and-optimization/module2/cdmo2.tex +++ b/src/year1/combinatorial-decision-making-and-optimization/module2/cdmo2.tex @@ -3,6 +3,7 @@ \title{Combinatorial Decision Making\\and Optimization\\(Module 2)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \def\calT{\mathcal{T}} \def\calB{\mathcal{B}} diff --git a/src/year1/deep-learning/dl.tex b/src/year1/deep-learning/dl.tex index 1f9f896..735e7a9 100644 --- a/src/year1/deep-learning/dl.tex +++ b/src/year1/deep-learning/dl.tex @@ -3,6 +3,7 @@ \title{Deep Learning} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/fundamentals-of-ai-and-kr/module1/faikr1.tex b/src/year1/fundamentals-of-ai-and-kr/module1/faikr1.tex index 14368e6..8603c78 100644 --- a/src/year1/fundamentals-of-ai-and-kr/module1/faikr1.tex +++ b/src/year1/fundamentals-of-ai-and-kr/module1/faikr1.tex @@ -3,6 +3,7 @@ \title{Fundamentals of Artificial Intelligence and Knowledge Representation\\(Module 1)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/fundamentals-of-ai-and-kr/module2/faikr2.tex b/src/year1/fundamentals-of-ai-and-kr/module2/faikr2.tex index dc5318c..371d337 100644 --- a/src/year1/fundamentals-of-ai-and-kr/module2/faikr2.tex +++ b/src/year1/fundamentals-of-ai-and-kr/module2/faikr2.tex @@ -3,6 +3,7 @@ \title{Fundamentals of Artificial Intelligence and Knowledge Representation\\(Module 2)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/fundamentals-of-ai-and-kr/module3/faikr3.tex b/src/year1/fundamentals-of-ai-and-kr/module3/faikr3.tex index 6ad715a..ee2a9ae 100644 --- a/src/year1/fundamentals-of-ai-and-kr/module3/faikr3.tex +++ b/src/year1/fundamentals-of-ai-and-kr/module3/faikr3.tex @@ -3,6 +3,7 @@ \title{Fundamentals of Artificial Intelligence and Knowledge Representation\\(Module 3)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/image-processing-and-computer-vision/module1/ipcv1.tex b/src/year1/image-processing-and-computer-vision/module1/ipcv1.tex index a8adbf4..ba68f1c 100644 --- a/src/year1/image-processing-and-computer-vision/module1/ipcv1.tex +++ b/src/year1/image-processing-and-computer-vision/module1/ipcv1.tex @@ -5,6 +5,7 @@ \title{Image Processing and Computer Vision\\(Module 1)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/image-processing-and-computer-vision/module2/ipcv2.tex b/src/year1/image-processing-and-computer-vision/module2/ipcv2.tex index 5edc267..d4eb118 100644 --- a/src/year1/image-processing-and-computer-vision/module2/ipcv2.tex +++ b/src/year1/image-processing-and-computer-vision/module2/ipcv2.tex @@ -3,6 +3,7 @@ \title{Image Processing and Computer Vision\\(Module 2)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \newcommand*\rot{\rotatebox{90}} diff --git a/src/year1/languages-and-algorithms-for-ai/module2/laai2.tex b/src/year1/languages-and-algorithms-for-ai/module2/laai2.tex index 9fcab45..8a63cb6 100644 --- a/src/year1/languages-and-algorithms-for-ai/module2/laai2.tex +++ b/src/year1/languages-and-algorithms-for-ai/module2/laai2.tex @@ -3,6 +3,7 @@ \title{Languages and Algorithms for\\Artificial Intelligence\\(Module 2)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/src/year1/languages-and-algorithms-for-ai/module3/laai3.tex b/src/year1/languages-and-algorithms-for-ai/module3/laai3.tex index 922cbdb..8db5a5d 100644 --- a/src/year1/languages-and-algorithms-for-ai/module3/laai3.tex +++ b/src/year1/languages-and-algorithms-for-ai/module3/laai3.tex @@ -4,6 +4,7 @@ \title{Languages and Algorithms for\\Artificial Intelligence\\(Module 3)} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \newcommand{\enc}[1]{{\llcorner{#1}\lrcorner}} \newcommand{\tapestart}[0]{\triangleright} \newcommand{\tapeblank}[0]{\square} diff --git a/src/year1/machine-learning-and-data-mining/dm-ml.tex b/src/year1/machine-learning-and-data-mining/dm-ml.tex index c145e14..a7b0f57 100644 --- a/src/year1/machine-learning-and-data-mining/dm-ml.tex +++ b/src/year1/machine-learning-and-data-mining/dm-ml.tex @@ -3,6 +3,7 @@ \title{Machine Learning and Data Mining} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \DeclareAcronym{oltp}{short=OLTP, long=Online Transaction Processing} \DeclareAcronym{erp}{short=ERP, long=Enterprise Resource Planning} diff --git a/src/year1/statistical-and-mathematical-methods-for-ai/smm.tex b/src/year1/statistical-and-mathematical-methods-for-ai/smm.tex index 146c6e1..37fe27c 100644 --- a/src/year1/statistical-and-mathematical-methods-for-ai/smm.tex +++ b/src/year1/statistical-and-mathematical-methods-for-ai/smm.tex @@ -3,6 +3,7 @@ \title{Statistical and Mathematical Methods for Artificial Intelligence} \date{2023 -- 2024} \def\lastupdate{{PLACEHOLDER-LAST-UPDATE}} +\def\giturl{{PLACEHOLDER-GIT-URL}} \begin{document} diff --git a/utils/compile.sh b/utils/compile.sh index 6bc9aa7..492d212 100644 --- a/utils/compile.sh +++ b/utils/compile.sh @@ -19,6 +19,7 @@ old_out_dir=`realpath $3` hash_file="$old_out_dir/.hash" new_hash_file="$out_dir/.hash" work_dir=`realpath $1` +git_base_url="https://github.com/NotXia/unibo-ai-notes/blob/pdfs" mkdir -p $out_dir touch $hash_file @@ -94,6 +95,10 @@ for f in **/[!_]*.tex; do last_update=`getLastUpdateDate` sed -i "s/PLACEHOLDER-LAST-UPDATE/${last_update}/" $f_base + # Insert Github link + git_url="${git_base_url}/${f_dir}/${f_nameonly}.pdf" + sed -i "s@PLACEHOLDER-GIT-URL@${git_url}@" $f_base + # Compile latexmk -pdf -jobname=${f_nameonly} ${f_base} mv ${f_nameonly}.pdf $out_dir/${f_dir}/.