-
Notifications
You must be signed in to change notification settings - Fork 85
/
title.tex
69 lines (50 loc) · 1.22 KB
/
title.tex
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
\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
\includegraphics[width=10cm]{_images/duck-alpha-cropped.png}
\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