Issue #3: Added support for a title page that can be modified.

This commit is contained in:
Wandmalfarbe 2017-05-18 21:17:28 +02:00
parent e3b9f8881f
commit b1139730ef

View File

@ -485,9 +485,51 @@ $endif$
%% end added
%%
\begin{document}
%%
%% begin titlepage
%%
$if(titlepage)$
\begin{titlepage}
\newgeometry{left=6cm}
$if(titlepage-color)$
\pagecolor[HTML]{$titlepage-color$}
$endif$
\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
\begin{flushleft}
\noindent
\\[-1em]
\color[HTML]{$if(titlepage-text-color)$$titlepage-text-color$$else$5f5f5f$endif$}
\makebox[0pt][l]{\colorRule[$if(titlepage-rule-color)$$titlepage-rule-color$$else$435488$endif$]{1.3\textwidth}{$if(titlepage-rule-height)$$titlepage-rule-height$$else$4$endif$pt}}
\par
\noindent
{ \setstretch{1.4}
\vfill
\noindent {\huge \textbf{\textsf{$title$}}}
$if(subtitle)$
\vskip 1em
{\Large \textsf{$subtitle$}}
$endif$
\vskip 2em
\noindent
{\Large \textsf{\uppercase{$for(author)$$author$$sep$ \and $endfor$}}
\vfill
}
\textsf{$date$}}
\end{flushleft}
\end{titlepage}
\restoregeometry
\nopagecolor
$endif$
%%
%% end titlepage
%%
$if(abstract)$
\begin{abstract}
$abstract$