diff options
author | Andreas Müller <andreas.mueller@ost.ch> | 2022-01-24 18:37:24 +0100 |
---|---|---|
committer | Andreas Müller <andreas.mueller@ost.ch> | 2022-01-24 18:37:24 +0100 |
commit | 8c629a12ed7ac964e9c3b79693144496d256ad3d (patch) | |
tree | 8ed262c0e1365f96b2ab4ff50d30dd322bcee2b1 | |
parent | fix the bookcover (diff) | |
download | SeminarSpezielleFunktionen-8c629a12ed7ac964e9c3b79693144496d256ad3d.tar.gz SeminarSpezielleFunktionen-8c629a12ed7ac964e9c3b79693144496d256ad3d.zip |
include cover in PDF
-rw-r--r-- | buch/buch.tex | 14 | ||||
-rw-r--r-- | buch/common/packages.tex | 5 | ||||
-rw-r--r-- | cover/Makefile | 14 | ||||
-rw-r--r-- | cover/backcover.jpg | bin | 0 -> 903962 bytes | |||
-rw-r--r-- | cover/backcover.png | bin | 0 -> 858440 bytes | |||
-rw-r--r-- | cover/buchcover.jpg | bin | 0 -> 1182986 bytes | |||
-rw-r--r-- | cover/buchcover.png | bin | 0 -> 1606730 bytes | |||
-rw-r--r-- | cover/buchcover.tex | 2 |
8 files changed, 30 insertions, 5 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} diff --git a/cover/Makefile b/cover/Makefile index c23a70f..7c53ef2 100644 --- a/cover/Makefile +++ b/cover/Makefile @@ -3,17 +3,25 @@ # # (c) 2018 Prof Dr Andreas Müller, Hochschule Rapperswil # -all: buchcover.png front.pdf back.pdf +all: buchcover.jpg backcover.jpg front.pdf back.pdf buchcover.pdf: buchcover.tex pdflatex buchcover.tex -buchcover.png: buchcover.pdf - convert -density 300 -extract 1966x2900+2630+190 buchcover.pdf \ +buchcover.png: buchcover.pdf Makefile + convert -density 300 -extract 2054x2900+2630+190 buchcover.pdf \ buchcover.png +buchcover.jpg: buchcover.png + convert buchcover.png buchcover.jpg +backcover.png: buchcover.pdf Makefile + convert -density 300 -extract 2054x2900+192+190 buchcover.pdf \ + backcover.png +backcover.jpg: backcover.png + convert backcover.png backcover.jpg front.pdf: front.tex buchcover.pdf pdflatex front.tex back.pdf: back.tex buchcover.pdf pdflatex back.tex + diff --git a/cover/backcover.jpg b/cover/backcover.jpg Binary files differnew file mode 100644 index 0000000..fbde01f --- /dev/null +++ b/cover/backcover.jpg diff --git a/cover/backcover.png b/cover/backcover.png Binary files differnew file mode 100644 index 0000000..95e6f5d --- /dev/null +++ b/cover/backcover.png diff --git a/cover/buchcover.jpg b/cover/buchcover.jpg Binary files differnew file mode 100644 index 0000000..f941169 --- /dev/null +++ b/cover/buchcover.jpg diff --git a/cover/buchcover.png b/cover/buchcover.png Binary files differnew file mode 100644 index 0000000..02b3c54 --- /dev/null +++ b/cover/buchcover.png diff --git a/cover/buchcover.tex b/cover/buchcover.tex index 2980d32..0afcd01 100644 --- a/cover/buchcover.tex +++ b/cover/buchcover.tex @@ -20,8 +20,8 @@ \usetikzlibrary{math} \geometry{papersize={402mm,278mm},total={405mm,278mm},top=72.27pt, bottom=0pt, left=72.27pt, right=0pt} \newboolean{guidelines} -\setboolean{guidelines}{false} \setboolean{guidelines}{true} +\setboolean{guidelines}{false} \begin{document} \begin{tikzpicture}[>=latex, scale=1] |