From 5d9be1742bbf7c6be361c1580ecbb22480b655fa Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Oct 2024 13:15:42 +0200 Subject: fix(templates/latex/presentation): Get to compile --- templates/latex/presentation/%INIT_APPLICATION_NAME.tex | 5 ++--- .../latex/presentation/content/static/questions.tex | 2 +- templates/latex/presentation/content/static/title.tex | 4 +--- templates/latex/presentation/headers/preamble/mod.tex | 9 ++++++++- templates/latex/presentation/lpm.toml | 4 ++-- templates/latex/presentation/resources/images/logo.pdf | Bin 0 -> 39677 bytes 6 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 templates/latex/presentation/resources/images/logo.pdf (limited to 'templates/latex/presentation') 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 Binary files /dev/null and b/templates/latex/presentation/resources/images/logo.pdf differ -- cgit 1.4.1