mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2024-12-24 08:26:38 +00:00
Issue #3: Added support for a title page that can be modified.
This commit is contained in:
parent
e3b9f8881f
commit
b1139730ef
@ -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$
|
||||
|
Loading…
Reference in New Issue
Block a user