aboutsummaryrefslogtreecommitdiffstats
path: root/buch
diff options
context:
space:
mode:
authorAndreas Müller <andreas.mueller@ost.ch>2022-01-24 18:37:24 +0100
committerAndreas Müller <andreas.mueller@ost.ch>2022-01-24 18:37:24 +0100
commit8c629a12ed7ac964e9c3b79693144496d256ad3d (patch)
tree8ed262c0e1365f96b2ab4ff50d30dd322bcee2b1 /buch
parentfix the bookcover (diff)
downloadSeminarSpezielleFunktionen-8c629a12ed7ac964e9c3b79693144496d256ad3d.tar.gz
SeminarSpezielleFunktionen-8c629a12ed7ac964e9c3b79693144496d256ad3d.zip
include cover in PDF
Diffstat (limited to '')
-rw-r--r--buch/buch.tex14
-rw-r--r--buch/common/packages.tex5
2 files changed, 18 insertions, 1 deletions
diff --git a/buch/buch.tex b/buch/buch.tex
index de40b1f..e708b72 100644
--- a/buch/buch.tex
+++ b/buch/buch.tex
@@ -34,6 +34,12 @@ pdfauthor={Andreas Müller}
\DeclareGraphicsRule{*}{mps}{*}{}
\begin{document}
+% cover page
+\ifthenelse{\boolean{includecover}}{
+\incgraph[documentpaper][width=\paperwidth,height=\paperheight]{../cover/buchcover.jpg}
+\newpage\null\thispagestyle{empty}\newpage
+}{}
+
\input{common/titlepage.tex}
% add common macros
@@ -50,6 +56,12 @@ pdfauthor={Andreas Müller}
\lhead{Index}
\rhead{}
\addcontentsline{toc}{chapter}{\indexname}
-\input{buch.ind}
+\InputIfFileExists{buch.ind}
+
+% cover page
+\ifthenelse{\boolean{includecover}}{
+\newpage\null\thispagestyle{empty}\newpage
+\incgraph[documentpaper][width=\paperwidth,height=\paperheight]{../cover/backcover.jpg}
+}{}
\end{document}
diff --git a/buch/common/packages.tex b/buch/common/packages.tex
index 342bf7b..2051093 100644
--- a/buch/common/packages.tex
+++ b/buch/common/packages.tex
@@ -67,6 +67,7 @@
\usepackage{gensymb}
\usepackage{mathtools}
\usepackage[many]{tcolorbox}
+\usepackage{incgraph}
% import the listing styles
\input{common/lststyles.tex}
@@ -74,3 +75,7 @@
\usepackage{caption}
\usepackage[mode=buildnew]{standalone}
\usepackage[backend=bibtex]{biblatex}
+
+% set this variable to false when preparing the PDF for the printer
+\newboolean{includecover}
+\setboolean{includecover}{true}