view dottes.tex.section-tunes @ 955:2324285ba90b

Round A4 up to a multiple of 4 total pages. I can't easily get the number of actual pages processed, so rely on telling the (rather hacky, and surprising - I have to divide to a separate counter to force an integer result) macro the number of pages used before the current numbering started.
author Jim Hague <jim.hague@acm.org>
date Tue, 06 Aug 2019 23:29:51 +0100
parents 7cc06a68a572
children
line wrap: on
line source

% ----- Tunes and intro page for a section.

\newpage

\addcontentsline{toc}{chapter}{@SECTIONNAME@ tunes}

\vspace*{\fill}

\begin{center}
{\Huge \input{@SECTION@-title.txt}}\\[\baselineskip]
{\Large \input{@SECTION@-subtitle.txt}}
\end{center}

\vspace*{\fill}

\ifdim \paperheight<200mm \newpage \fi

\showsectiongraphic{@SECTION@-image.jpg}{\input{@SECTION@-image.tex}}

\vspace*{\fill}

\input{@SECTION@-intro.tex}

\newpage

{
\newcolumntype{L}{p{0.25\textwidth}}%
\newcolumntype{R}{>{\raggedleft\arraybackslash}p{0.25\textwidth}}%
\newcolumntype{C}{>{\centering\arraybackslash}X}%
\renewcommand{\tabularxcolumn}[1]{m{#1}}%
\renewcommand{\tabcolsep}{0pt}

\input{@SECTION@-tunes.tex}
}