Browse Source

Issue #7: Used package ‘pagecolor’ to change the color of the title page.

pull/11/head
Wandmalfarbe 8 years ago
parent
commit
414886239c
  1. 12
      eisvogel.latex

12
eisvogel.latex

@ -317,6 +317,14 @@ $endif$
%\definecolor{listing-comment}{rgb}{0.25,0.5,0.35}
%\definecolor{listing-javadoc-comment}{HTML}{006CA9}
%
% for the background color of the title page
%
$if(titlepage)$
\usepackage{pagecolor}
\usepackage{afterpage}
$endif$
%
% TOC depth and
% section numbering depth
@ -496,7 +504,8 @@ $if(titlepage)$
\begin{titlepage}
\newgeometry{left=6cm}
$if(titlepage-color)$
\pagecolor[HTML]{$titlepage-color$}
\definecolor{titlepage-color}{HTML}{$titlepage-color$}
\newpagecolor{titlepage-color}\afterpage{\restorepagecolor}
$endif$
\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
\begin{flushleft}
@ -524,7 +533,6 @@ $endif$
\end{flushleft}
\end{titlepage}
\restoregeometry
\nopagecolor
$endif$
%%

Loading…
Cancel
Save