File tree 15 files changed +116
-43
lines changed
15 files changed +116
-43
lines changed Original file line number Diff line number Diff line change 5
5
# Usage sh build.sh <lectureNumberAsString>
6
6
7
7
fileprefix=" TheoLog2017-Vorlesung-" # the start of generated PDFs
8
- tmpfilename=" ` mktemp tmplecturefile-XXX` " # generate a name that doesn't collide with anything present
9
8
9
+ inputfilename=lecture-${1} .tex
10
10
printfilename=${fileprefix}${1} -print.pdf
11
11
overlayfilename=${fileprefix}${1} -overlay.pdf
12
12
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}
26
16
27
17
echo
28
18
echo
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
4
9
\input {macros-lecture }
5
10
6
11
\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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
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
3
9
4
10
\input {macros-lecture }
5
11
You can’t perform that action at this time.
0 commit comments