Repository navigation
Expand file tree
/
Copy pathtitle.tex
More file actions
79 lines (60 loc) · 1.75 KB
/
Copy pathtitle.tex
File metadata and controls
79 lines (60 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
\pagestyle{fancy}
\ifepub
%% Really gross hack for epub
%% Comment out all the environments that would output something and put them back in after
%% Why can't we just comment out the titlepage command?
%% Latex and pandoc make it difficult with macros
\let\oldbf\textbf
\renewcommand{\textbf}[1]{}
\let\oldgraphics\includegraphics
\renewcommand{\includegraphics}[2][]{}
\fi
\begin{titlepage}
\newgeometry{left=6cm} %defines the geometry for the titlepage
\pagecolor{titlepagecolor}
\noindent
\par
\noindent
\color{white}
\textbf{ {\huge Coursebook} }
\par
{\color{linecolor}\makebox[0pt][l]{\rule{1.3\textwidth}{3pt}}\color{white}}
\vfill
% The duck is decorative. In a tagged build (make pdf TAGGED=1) the
% artifact key makes it an artifact rather than an untagged /Figure (#238).
% graphicx has that key only from 2024-12, and older graphicx (TeX Live
% 2023, what CI uses) rejects unknown keys, so test for it first. In an
% untagged build the key does nothing. (This \ifdefined form, unlike
% \ifcsname, leaks no text into pandoc's EPUB output.)
\makeatletter\ifdefined\KV@Gin@artifact
\includegraphics[artifact,width=10cm]{_images/duck-alpha-cropped.png}
\else
\includegraphics[width=10cm]{_images/duck-alpha-cropped.png}
\fi\makeatother
\vfill
\noindent
\textbf{ {\huge B. Venkatesh, L. Angrave, et Al.} }
\par
{\color{linecolor}\makebox[0pt][l]{\rule{1.3\textwidth}{3pt}}\color{white}}
\vskip\baselineskip
\end{titlepage}
\ifepub
\let\textbf\oldbf
\let\includegraphics\oldgraphics
\fi
\restoregeometry % restores the geometry
\nopagecolor% Use this to restore the color pages to white
\newpage
\ifepub
% No droids
\else
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}
\newpage
\tableofcontents
\newpage
\listoffigures
\newpage
\listoftables
\newpage
\fi