mirror of
https://github.com/Wandmalfarbe/pandoc-latex-template.git
synced 2025-01-18 10:46:30 +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-comment}{rgb}{0.25,0.5,0.35}
|
||||||
%\definecolor{listing-javadoc-comment}{HTML}{006CA9}
|
%\definecolor{listing-javadoc-comment}{HTML}{006CA9}
|
||||||
|
|
||||||
|
%
|
||||||
|
% for the background color of the title page
|
||||||
|
%
|
||||||
|
$if(titlepage)$
|
||||||
|
\usepackage{pagecolor}
|
||||||
|
\usepackage{afterpage}
|
||||||
|
$endif$
|
||||||
|
|
||||||
%
|
%
|
||||||
% TOC depth and
|
% TOC depth and
|
||||||
% section numbering depth
|
% section numbering depth
|
||||||
@ -496,7 +504,8 @@ $if(titlepage)$
|
|||||||
\begin{titlepage}
|
\begin{titlepage}
|
||||||
\newgeometry{left=6cm}
|
\newgeometry{left=6cm}
|
||||||
$if(titlepage-color)$
|
$if(titlepage-color)$
|
||||||
\pagecolor[HTML]{$titlepage-color$}
|
\definecolor{titlepage-color}{HTML}{$titlepage-color$}
|
||||||
|
\newpagecolor{titlepage-color}\afterpage{\restorepagecolor}
|
||||||
$endif$
|
$endif$
|
||||||
\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
|
\newcommand{\colorRule}[3][black]{\textcolor[HTML]{#1}{\rule{#2}{#3}}}
|
||||||
\begin{flushleft}
|
\begin{flushleft}
|
||||||
@ -524,7 +533,6 @@ $endif$
|
|||||||
\end{flushleft}
|
\end{flushleft}
|
||||||
\end{titlepage}
|
\end{titlepage}
|
||||||
\restoregeometry
|
\restoregeometry
|
||||||
\nopagecolor
|
|
||||||
$endif$
|
$endif$
|
||||||
|
|
||||||
%%
|
%%
|
||||||
|
Loading…
Reference in New Issue
Block a user