mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-18 02:40:10 +00:00
Issue #7: Used package ‘pagecolor’ to change the color of the title page.
This commit is contained in:
parent
9a2a96f44c
commit
414886239c
@ -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…
Reference in New Issue
Block a user