I'm writing a booklet and I'm facing a problem with the back page. Printing the resulting PDF of the LaTeX project as a booklet often result in a unwanted layout. I mean... to have the back cover in the last booklet page the total number of pages in the book should be divisble by 4.
Up to now I'm solving this placing blank pages to match the correct number, I would like to avoid this in a more programmatic way or using some features of LaTeX itself.
Up to now I'm using this document class:
\documentclass[dvipsnames,a5paper,twoside,openright,italian,12pt]{memoir}
I'm printing this on A4 paper and folding.
The backpage is defined through this command:
\newcommand{\myback}{%
\cleartoleftpage%
\thispagestyle{empty}%
\begin{center}%
\begin{vplace}[0.7]%
\def\svgwidth{60mm}%
\input{logo_red.pdf_tex}%
%\includegraphics[width = 60mm]{logo_red.png}%
\end{vplace}
\vfill%
{\color{red} \huge \textcopyright~\thedate}%
\end{center}
}
and refers to another custom command:
\newcommand*\cleartoleftpage{%
\clearpage
\ifodd\value{page}\hbox{}\newpage\fi
}
that works fine on books since it forces backpage to be on an even page.
How can I modify such condition to fit my current needs?
BTW I'm not using the booklet package (but as long as I can see there are not specific functions to create a back cover in the last page).
articledocument class, and your booklet is based onmemoir. if there are particular things you need to pay attention to, you could show them with a self-answer, which might save someone else from recreating the specifics. – barbara beeton Aug 23 '16 at 18:14expl3. – cfr Aug 23 '16 at 22:19