File tree Expand file tree Collapse file tree 15 files changed +116
-43
lines changed
Expand file tree Collapse file tree 15 files changed +116
-43
lines changed Original file line number Diff line number Diff line change 55# Usage sh build.sh <lectureNumberAsString>
66
77fileprefix=" TheoLog2017-Vorlesung-" # the start of generated PDFs
8- tmpfilename=" ` mktemp tmplecturefile-XXX` " # generate a name that doesn't collide with anything present
98
9+ inputfilename=lecture-${1} .tex
1010printfilename=${fileprefix}${1} -print.pdf
1111overlayfilename=${fileprefix}${1} -overlay.pdf
1212
13- echo ' \documentclass[onlymath,handout]{beamer}' > ${tmpfilename} .tex
14- tail -n +3 lecture-${1} .tex >> ${tmpfilename} .tex
15- latexmk -lualatex ${tmpfilename} .tex
16- latexmk -c ${tmpfilename} .tex
17- pdfnup --nup 2x2 --outfile ${printfilename} ${tmpfilename} .pdf
18-
19- echo ' \documentclass[onlymath]{beamer}' > ${tmpfilename} .tex
20- tail -n +3 lecture-${1} .tex >> ${tmpfilename} .tex
21- latexmk -lualatex ${tmpfilename} .tex
22- latexmk -c ${tmpfilename} .tex
23- mv ${tmpfilename} .pdf ${overlayfilename}
24-
25- rm ${tmpfilename} ${tmpfilename} .*
13+ latexmk -lualatex -pdflatex=" lualatex --shell-escape %O %S" ${inputfilename}
14+ cp lecture-${1} -print.pdf ${printfilename}
15+ cp lecture-${1} .pdf ${overlayfilename}
2616
2717echo
2818echo
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
3-
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
49\input {macros-lecture }
510
611\defineTitle {8}{Beziehungen zwischen Komplexitätsklassen / Effizient lösbare Probleme}{3. Mai 2017}
Original file line number Diff line number Diff line change 1- \documentclass [onlymath ]{beamer }
2- % \documentclass[onlymath,handout]{beamer}
1+ \newcommand *{\BeamerSuffix }{-overlay}
2+ \newcommand *{\HandoutSuffix }{-print}
3+ \PassOptionsToClass {onlymath}{beamer}
4+ \documentclass [also={handout} ]{beamerswitch }
5+ \handoutlayout {nup=4}
6+ \makeatletter
7+ \beamer@ignorenonframefalse
8+ \makeatother
39
410\input {macros-lecture }
511
You can’t perform that action at this time.
0 commit comments