Add book cover (#136)

Both PDF and HTML generation are supported.
This commit is contained in:
Ching-Hua (Vivian) Lin 2022-01-09 20:26:07 +08:00 committed by GitHub
parent 5c0f9b0abc
commit fb15882377
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

BIN
assets/cover-with-names.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

BIN
assets/cover.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

View File

@ -6,6 +6,7 @@
\usepackage{fancyhdr}
\usepackage{xparse}
\usepackage{ifthen}
\usepackage{pdfpages}
% tikz settings
\usepackage{tikz}
@ -46,8 +47,16 @@
\maketitle
\ifdefined\HCode
\includegraphics{assets/cover-with-names.png}
% turn off TOC
\else
\pagestyle{empty}
\begin{tikzpicture}[remember picture, overlay]
\node at (current page.center) {\includegraphics[width=\paperwidth, height=\paperheight]{assets/cover.png}}; \\
\node at (11, -9.5) {\Large \textbf{Peter Jay Salzman, Michael Burian,}}; \\
\node at (11, -10.5) {\Large \textbf{Ori Pomerantz, Bob Mottram,}}; \\
\node at (11, -11.5) {\Large \textbf{Jim Huang}};
\end{tikzpicture}
\tableofcontents
\fi