about summary refs log tree commit diff stats
path: root/templates
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-10-04 13:15:42 +0200
commit5d9be1742bbf7c6be361c1580ecbb22480b655fa (patch)
tree1f659d46d84e348c02f1cc820ac45c4ec20c0c01 /templates
parentbuild(templates.nix): Register new `latex/presentation` template (diff)
downloadflake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.tar.gz
flake-templates-5d9be1742bbf7c6be361c1580ecbb22480b655fa.zip
fix(templates/latex/presentation): Get to compile
Diffstat (limited to 'templates')
-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
7 files changed, 16 insertions, 11 deletions
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