Skip to content

Commit

Permalink
Use LuaLaTeX
Browse files Browse the repository at this point in the history
Use LuaLaTeX instead of pdfLaTeX to build the slides.  This fixes knowsys#5.
Use latexmk instead of relying on two runs sufficing to build the documents.
  • Loading branch information
mmarx committed Feb 20, 2018
1 parent a40909e commit 4ad27b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
9 changes: 6 additions & 3 deletions Vorlesungen/beamerouterthemetud.sty
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
\ProcessOptionsBeamer\relax

\RequirePackage{calc}
\RequirePackage{ifluatex}

% Templates

Expand Down Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions Vorlesungen/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@
# Usage sh build.sh <lectureNumberAsString>

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"

0 comments on commit 4ad27b1

Please sign in to comment.