Skip to content

Commit b859922

Browse files
committed
Build overlay and print versions in parallel
1 parent 2974432 commit b859922

15 files changed

+116
-43
lines changed

Vorlesungen/build.sh

+4-14
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,14 @@
55
# Usage sh build.sh <lectureNumberAsString>
66

77
fileprefix="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
1010
printfilename=${fileprefix}${1}-print.pdf
1111
overlayfilename=${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

2717
echo
2818
echo

Vorlesungen/lecture-01.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-02.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-03.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-04.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-05.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-06.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-07.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-08.tex

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
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}

Vorlesungen/lecture-09.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-10.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-11.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-12.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-13.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

Vorlesungen/lecture-14.tex

+8-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
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

0 commit comments

Comments
 (0)