Skip to content

Use LuaLaTeX instead of pdfLaTeX #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@
/Uebungen/uebung-08.pdf
/Uebungen/uebung-08.synctex.gz
/Uebungen/auto/uebung-06-03-musterloesung.el
/Vorlesungen/auto
/Vorlesungen/tmplecturefile-*
/Vorlesungen/TheoLog2017-Vorlesung-*.pdf
/Vorlesungen/lecture-*.pdf
/Vorlesungen/*.aux
/Vorlesungen/*.fdb_latexmk
/Vorlesungen/*.fls
/Vorlesungen/*.log
/Vorlesungen/*.nav
/Vorlesungen/*.out
/Vorlesungen/*.snm
/Vorlesungen/*.synctex.gz
/Vorlesungen/*.toc
16 changes: 5 additions & 11 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{ifpdf}

% Templates

Expand Down Expand Up @@ -130,18 +131,11 @@
\newcommand*{\inserttotalpagenumber}{\textbf{??}}


\def\logo@front{logo_weiss}
\def\logo@default{logo_blau}
\ifx\pdfoutput\undefined
\ifpdf
\def\logo@front{TU_Logo_SW}%
\def\logo@default{TU_Logo_SW}%
\else
\ifx\pdfoutput\relax
\else
\ifcase\pdfoutput
\else
\def\logo@front{TU_Logo_SW}%
\def\logo@default{TU_Logo_SW}%
\fi
\fi
\errmessage{non-PDF output is not supported by this style}%
\fi


Expand Down
27 changes: 10 additions & 17 deletions Vorlesungen/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,16 @@
# Usage sh build.sh <lectureNumberAsString>

fileprefix="TheoLog2017-Vorlesung-" # the start of generated PDFs
tmpfilename="tmplecturefile" # don't have any files called like this!

printfilename=$fileprefix$1-print.pdf
overlayfilename=$fileprefix$1-overlay.pdf
inputfilename=lecture-${1}.tex
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
pdfnup --nup 2x2 --outfile $printfilename $tmpfilename.pdf
latexmk -lualatex -pdflatex="lualatex --shell-escape %O %S" ${inputfilename}
cp lecture-${1}-print.pdf ${printfilename}
cp lecture-${1}.pdf ${overlayfilename}

printf "\\documentclass[aspectratio=1610,onlymath]{beamer}\n\n" > $tmpfilename.tex
tail -n +3 lecture-$1.tex >> $tmpfilename.tex
pdflatex $tmpfilename.tex
pdflatex $tmpfilename.tex
mv $tmpfilename.pdf $overlayfilename

rm $tmpfilename.*

printf "\n\n*** Finished creating files '$overlayfilename' and '$printfilename' ***\n"
echo
echo
echo "*** Finished creating files '${overlayfilename}' and '${printfilename}' ***"
echo
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-01.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-02.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-03.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-04.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-05.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-06.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-07.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
11 changes: 8 additions & 3 deletions Vorlesungen/lecture-08.tex
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}

\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother
\input{macros-lecture}

\defineTitle{8}{Beziehungen zwischen Komplexitätsklassen / Effizient lösbare Probleme}{3. Mai 2017}
Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-09.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-10.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-11.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-12.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-13.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down
10 changes: 8 additions & 2 deletions Vorlesungen/lecture-14.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
\documentclass[onlymath]{beamer}
% \documentclass[onlymath,handout]{beamer}
\newcommand*{\BeamerSuffix}{-overlay}
\newcommand*{\HandoutSuffix}{-print}
\PassOptionsToClass{onlymath}{beamer}
\documentclass[also={handout}]{beamerswitch}
\handoutlayout{nup=4}
\makeatletter
\beamer@ignorenonframefalse
\makeatother

\input{macros-lecture}

Expand Down