about summary refs log tree commit diff stats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--common/latex/preamble.tex1
-rw-r--r--common/latex/preamble/academia/index.tex (renamed from common/latex/preamble/core/index.tex)0
-rw-r--r--common/latex/preamble/academia/mod.tex1
-rw-r--r--common/latex/preamble/core/mod.tex1
-rw-r--r--common/latex/preamble/mod.tex3
-rwxr-xr-xcommon/scripts/latex/build.sh4
-rw-r--r--templates/latex/academia/headers/preamble/mod.tex3
-rw-r--r--templates/latex/presentation/%INIT_APPLICATION_NAME.tex5
-rw-r--r--templates/latex/presentation/content/static/questions.tex2
-rw-r--r--templates/latex/presentation/content/static/title.tex4
-rw-r--r--templates/latex/presentation/headers/preamble/mod.tex9
-rw-r--r--templates/latex/presentation/lpm.toml4
-rw-r--r--templates/latex/presentation/resources/images/logo.pdfbin0 -> 39677 bytes
13 files changed, 19 insertions, 18 deletions
diff --git a/common/latex/preamble.tex b/common/latex/preamble.tex
index d45262a..d10a02e 100644
--- a/common/latex/preamble.tex
+++ b/common/latex/preamble.tex
@@ -1,2 +1 @@
 \input{headers/preamble/mod.tex}
-\input{headers/preamble_local.tex}
diff --git a/common/latex/preamble/core/index.tex b/common/latex/preamble/academia/index.tex
index 3efbfc4..3efbfc4 100644
--- a/common/latex/preamble/core/index.tex
+++ b/common/latex/preamble/academia/index.tex
diff --git a/common/latex/preamble/academia/mod.tex b/common/latex/preamble/academia/mod.tex
index 39b9230..1f2cd71 100644
--- a/common/latex/preamble/academia/mod.tex
+++ b/common/latex/preamble/academia/mod.tex
@@ -1,4 +1,5 @@
 % derived from:
 % https://github.com/gillescastel/lecture-notes/blob/929672a96abc27eaeb6fa58b1d277b3582d28532/group-theory/preamble.tex
+\input{headers/preamble/academia/index.tex}
 \input{headers/preamble/academia/theorems/mod.tex}
 \input{headers/preamble/academia/visuals.tex}
diff --git a/common/latex/preamble/core/mod.tex b/common/latex/preamble/core/mod.tex
index 403ce58..7eaa1c0 100644
--- a/common/latex/preamble/core/mod.tex
+++ b/common/latex/preamble/core/mod.tex
@@ -7,7 +7,6 @@
 \input{headers/preamble/core/date_and_time.tex}
 \input{headers/preamble/core/encoding.tex}
 \input{headers/preamble/core/graphics_and_floats.tex}
-\input{headers/preamble/core/index.tex}
 \input{headers/preamble/core/linting.tex}
 \input{headers/preamble/core/margindate.tex}
 \input{headers/preamble/core/math.tex}
diff --git a/common/latex/preamble/mod.tex b/common/latex/preamble/mod.tex
deleted file mode 100644
index f11ff21..0000000
--- a/common/latex/preamble/mod.tex
+++ /dev/null
@@ -1,3 +0,0 @@
-\input{headers/preamble/academia/mod.tex}
-\input{headers/preamble/beamer/mod.tex}
-\input{headers/preamble/core/mod.tex}
diff --git a/common/scripts/latex/build.sh b/common/scripts/latex/build.sh
index 1ff2b6e..80ecc57 100755
--- a/common/scripts/latex/build.sh
+++ b/common/scripts/latex/build.sh
@@ -46,8 +46,8 @@ fd . "$root/figures" --type file --extension tex | while read -r figure; do
         echo "   -> Didn't change, not re-compiling."
     else
         echo "$figure_hash" >"$dst/figures/$figure_name/$figure_name.sha256sum_hash"
-        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure"
+        pdflatex -output-directory="$dst" -file-line-error -jobname="figures/$figure_name/$figure_name" "$figure" || exit 1
     fi
-done
+done || exit 1
 
 latexmk -outdir="$dst" -file-line-error -pdflatex -recorder "$file"
diff --git a/templates/latex/academia/headers/preamble/mod.tex b/templates/latex/academia/headers/preamble/mod.tex
index 91ae2d7..dcdd92a 100644
--- a/templates/latex/academia/headers/preamble/mod.tex
+++ b/templates/latex/academia/headers/preamble/mod.tex
@@ -1,2 +1,3 @@
-\input{headers/preamble/academia/mod.tex}
 \input{headers/preamble/core/mod.tex}
+
+\input{headers/preamble/academia/mod.tex}
diff --git a/templates/latex/presentation/%INIT_APPLICATION_NAME.tex b/templates/latex/presentation/%INIT_APPLICATION_NAME.tex
index a04a7dd..dc63700 100644
--- a/templates/latex/presentation/%INIT_APPLICATION_NAME.tex
+++ b/templates/latex/presentation/%INIT_APPLICATION_NAME.tex
@@ -19,7 +19,7 @@
 \SetYears{%INIT_YEAR}
 \SetAuthors{%INIT_AUTHOR_NAME}
 
-\logo{\includegraphics[height=1cm]{references/images/logo}}
+\logo{\includegraphics[height=1cm]{resources/images/logo}}
 
 \usetheme[block=fill]{moloch}
 
@@ -36,7 +36,7 @@
 \hypersetup{
   pdftitle={\@title},
   pdfsubject={},
-  pdfauthor={\@authors},
+  pdfauthor={\AuthorList},
   pdfkeywords={TODO},
 }
 \makeatother
@@ -55,6 +55,5 @@
 \appendix
 \begin{frame}
 	\printbibliography
-	\printindex
 \end{frame}
 \end{document}
diff --git a/templates/latex/presentation/content/static/questions.tex b/templates/latex/presentation/content/static/questions.tex
index 40c3803..21126c5 100644
--- a/templates/latex/presentation/content/static/questions.tex
+++ b/templates/latex/presentation/content/static/questions.tex
@@ -5,6 +5,6 @@
 
 \begin{frame}[standout]
 	% TODO change to your needed language
-	\shadowtext{Questions?}
+	Questions?
 \end{frame}
 }
diff --git a/templates/latex/presentation/content/static/title.tex b/templates/latex/presentation/content/static/title.tex
index 30ad3d9..9078b0c 100644
--- a/templates/latex/presentation/content/static/title.tex
+++ b/templates/latex/presentation/content/static/title.tex
@@ -15,13 +15,11 @@
 		\url{%INIT_HOME_PAGE}
 	\end{center}
 
-	\makeatletter
-	Copyright \textcopyright{} \@authors{} \@years{}\\
+	Copyright \textcopyright{} \AuthorList{} \YearList{}\\
 	\ \\
 	This work is licensed under the terms of the %INIT_SPDX_LICENSE_IDENTIFIER licence.
 	The licence text can be found online at \url{%INIT_LICENSE_URL}.
 	\
-	\makeatother
 
 	% TODO match the logo to your real license
 	\begin{center}\ccbysa\end{center}
diff --git a/templates/latex/presentation/headers/preamble/mod.tex b/templates/latex/presentation/headers/preamble/mod.tex
index a8d5fc7..0a00086 100644
--- a/templates/latex/presentation/headers/preamble/mod.tex
+++ b/templates/latex/presentation/headers/preamble/mod.tex
@@ -1,2 +1,9 @@
-\input{headers/preamble/beamer/mod.tex}
 \input{headers/preamble/core/mod.tex}
+
+% This makes it possible to import this preamble in the `standalone` class. Useful for
+% external figures.
+\ifcsname setbeamercolor\endcsname
+	\input{headers/preamble/beamer/mod.tex}
+\else
+	% Don't input it
+\fi
diff --git a/templates/latex/presentation/lpm.toml b/templates/latex/presentation/lpm.toml
index 56e40fb..a689e78 100644
--- a/templates/latex/presentation/lpm.toml
+++ b/templates/latex/presentation/lpm.toml
@@ -14,13 +14,13 @@ section = '''
 \end{frame}
 '''
 
-chapter = """
+chapter = '''
 %! TEX root = ../../../%INIT_APPLICATION_NAME.tex
 % LTeX: language=%INIT_LANGUAGE
 
 % Chapter (lpm::current_date)
 \section{lpm::new_chapter_name}
-"""
+'''
 
 figure = '''
 % LTeX: language=%INIT_LANGUAGE
diff --git a/templates/latex/presentation/resources/images/logo.pdf b/templates/latex/presentation/resources/images/logo.pdf
new file mode 100644
index 0000000..57c500a
--- /dev/null
+++ b/templates/latex/presentation/resources/images/logo.pdf
Binary files differ