From 4ad27b1d232ba35423b535de3e7d001d8f4f3241 Mon Sep 17 00:00:00 2001 From: Maximilian Marx Date: Tue, 13 Jun 2017 21:00:16 +0200 Subject: [PATCH] Use LuaLaTeX Use LuaLaTeX instead of pdfLaTeX to build the slides. This fixes #5. Use latexmk instead of relying on two runs sufficing to build the documents. --- Vorlesungen/beamerouterthemetud.sty | 9 ++++++--- Vorlesungen/build.sh | 12 ++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/Vorlesungen/beamerouterthemetud.sty b/Vorlesungen/beamerouterthemetud.sty index e399ef5..032511c 100644 --- a/Vorlesungen/beamerouterthemetud.sty +++ b/Vorlesungen/beamerouterthemetud.sty @@ -31,6 +31,7 @@ \ProcessOptionsBeamer\relax \RequirePackage{calc} +\RequirePackage{ifluatex} % Templates @@ -130,9 +131,11 @@ \newcommand*{\inserttotalpagenumber}{\textbf{??}} -\def\logo@front{logo_weiss} -\def\logo@default{logo_blau} -\ifx\pdfoutput\undefined +\def\logo@front{TU_Logo_SW} +\def\logo@default{TU_Logo_SW} +\ifluatex + \def\logo@front{TU_Logo_SW}% + \def\logo@default{TU_Logo_SW}% \else \ifx\pdfoutput\relax \else diff --git a/Vorlesungen/build.sh b/Vorlesungen/build.sh index 1cc447b..00cc8ae 100755 --- a/Vorlesungen/build.sh +++ b/Vorlesungen/build.sh @@ -5,23 +5,23 @@ # Usage sh build.sh fileprefix="TheoLog2017-Vorlesung-" # the start of generated PDFs -tmpfilename="tmplecturefile" # don't have any files called like this! +tmpfilename="`mktemp tmplecturefile-XXX`" # generate a name that doesn't collide with anything present printfilename=$fileprefix$1-print.pdf overlayfilename=$fileprefix$1-overlay.pdf printf "\\documentclass[aspectratio=1610,onlymath,handout]{beamer}\n\n" > $tmpfilename.tex tail -n +3 lecture-$1.tex >> $tmpfilename.tex -pdflatex $tmpfilename.tex -pdflatex $tmpfilename.tex +latexmk -lualatex ${tmpfilename}.tex +latexmk -c ${tmpfilename}.tex pdfnup --nup 2x2 --outfile $printfilename $tmpfilename.pdf printf "\\documentclass[aspectratio=1610,onlymath]{beamer}\n\n" > $tmpfilename.tex tail -n +3 lecture-$1.tex >> $tmpfilename.tex -pdflatex $tmpfilename.tex -pdflatex $tmpfilename.tex +latexmk -lualatex ${tmpfilename}.tex +latexmk -c ${tmpfilename}.tex mv $tmpfilename.pdf $overlayfilename -rm $tmpfilename.* +rm $tmpfilename $tmpfilename}.* printf "\n\n*** Finished creating files '$overlayfilename' and '$printfilename' ***\n"