Move cover page colour and blank coloured end page to doc-specific files.

That way output where the colour isn't appropriate, such as Nook or the newly introduced
A4Lulu output (which is the A4 book but with white cover page and no end coloured page, and so
suitable for using as the content on Lulu, where the cover is separate) can omit the colour.
This commit is contained in:
Jim Hague 2013-08-09 13:55:59 +01:00
parent ff01539526
commit a16ad7de0c
9 changed files with 52 additions and 7 deletions

3
docend.A4.tex Normal file
View File

@ -0,0 +1,3 @@
\pagecolor{havocpurple}
\thispagestyle{empty}
\mbox{}

0
docend.A4Lulu.tex Normal file
View File

3
docend.A5.tex Normal file
View File

@ -0,0 +1,3 @@
\pagecolor{havocpurple}
\thispagestyle{empty}
\mbox{}

0
docend.Nook.tex Normal file
View File

View File

@ -6,6 +6,7 @@
\newfontfamily\havocfont[Scale=3.5]{English Towne} \newfontfamily\havocfont[Scale=3.5]{English Towne}
\newcommand*{\titleBoD}{\begingroup \newcommand*{\titleBoD}{\begingroup
\pagecolor{havocpurple}
\centering \centering
{\Large \havocfont{Ye}}\\[\baselineskip] {\Large \havocfont{Ye}}\\[\baselineskip]
{\Huge \havocfont{Crie Havock}}\\[\baselineskip] {\Huge \havocfont{Crie Havock}}\\[\baselineskip]
@ -18,4 +19,9 @@
\includegraphics[width=0.5\textwidth,keepaspectratio]{buzzard} \includegraphics[width=0.5\textwidth,keepaspectratio]{buzzard}
\vfill \vfill
{Compiled by Jim Hague}\\ {Compiled by Jim Hague}\\
\newpage
\pagecolor{white}
\endgroup} \endgroup}
% Page appearance.
\newcommand*{\pagestylemod}{}

25
docsetup.A4Lulu.tex Normal file
View File

@ -0,0 +1,25 @@
\usepackage[margin=0.75in]{geometry}
% -----
% Title page
\newfontfamily\havocfont[Scale=3.5]{English Towne}
\newcommand*{\titleBoD}{\begingroup
\centering
{\Large \havocfont{Ye}}\\[\baselineskip]
{\Huge \havocfont{Crie Havock}}\\[\baselineskip]
{\Large \havocfont{Booke of}}\\[\baselineskip]
{\Huge \havocfont{\instrument Dottes}}\\[\baselineskip]
\vfill
{\Huge \input{title.txt}}\\[\baselineskip]
{\Large \input{subtitle.txt}}\\[\baselineskip]
\vfill
\includegraphics[width=0.5\textwidth,keepaspectratio]{buzzard}
\vfill
{Compiled by Jim Hague}\\
\newpage
\endgroup}
% Page appearance.
\newcommand*{\pagestylemod}{}

View File

@ -6,6 +6,7 @@
\newfontfamily\havocfont[Scale=2.1]{English Towne} \newfontfamily\havocfont[Scale=2.1]{English Towne}
\newcommand*{\titleBoD}{\begingroup \newcommand*{\titleBoD}{\begingroup
\pagecolor{havocpurple}
\centering \centering
{\Large \havocfont{Ye}}\\[\baselineskip] {\Large \havocfont{Ye}}\\[\baselineskip]
{\Huge \havocfont{Crie Havock}}\\[\baselineskip] {\Huge \havocfont{Crie Havock}}\\[\baselineskip]
@ -18,4 +19,9 @@
\includegraphics[width=0.12\textwidth,keepaspectratio]{buzzard} \includegraphics[width=0.12\textwidth,keepaspectratio]{buzzard}
\vfill \vfill
{Compiled by Jim Hague}\\ {Compiled by Jim Hague}\\
\newpage
\pagecolor{white}
\endgroup} \endgroup}
% Page appearance.
\newcommand*{\pagestylemod}{}

View File

@ -1,4 +1,4 @@
\usepackage[paperwidth=4.1in,paperheight=5in,left=0.1in,right=0.1in,top=0.5in,bottom=0.5in]{geometry} \usepackage[paperwidth=4.1in,paperheight=5in,left=0.1in,right=0.1in,top=0.5in,bottom=0.2in]{geometry}
% ----- % -----
@ -19,3 +19,8 @@
\vfill \vfill
{Compiled by Jim Hague}\\ {Compiled by Jim Hague}\\
\endgroup} \endgroup}
% Page appearance.
\newcommand*{\pagestylemod}{\begingroup
\cfoot{}
\endgroup}

View File

@ -97,6 +97,8 @@
\cfoot{\thepage} \cfoot{\thepage}
\renewcommand{\headrulewidth}{0pt} \renewcommand{\headrulewidth}{0pt}
\pagestylemod
\frontmatter \frontmatter
% No page numbering for now, thanks. % No page numbering for now, thanks.
@ -106,13 +108,10 @@
\newgeometry{margin=0.5in} \newgeometry{margin=0.5in}
\begin{titlepage} \begin{titlepage}
\pagecolor{havocpurple}
\titleBoD \titleBoD
\end{titlepage} \end{titlepage}
\restoregeometry \restoregeometry
\pagecolor{white}
% ----- First inside pages. No page numbering here, thanks. % ----- First inside pages. No page numbering here, thanks.
% Publisher info page. % Publisher info page.
@ -256,8 +255,6 @@ tune first lines to help you figure out what it is in time to join in.
\backmatter \backmatter
\pagecolor{havocpurple} \input{docend.tex}
\thispagestyle{empty}
\mbox{}
\end{document} \end{document}