Files
coursebook/title.tex
T

70 lines
1.2 KiB
TeX

\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