Skip to content

Instantly share code, notes, and snippets.

@gudmundurh
Created October 8, 2009 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gudmundurh/205342 to your computer and use it in GitHub Desktop.
Save gudmundurh/205342 to your computer and use it in GitHub Desktop.
% LaTeX macro for making the page count of a LaTeX
% document a multiple of some particular number
\def\addemptypage{
\pagebreak
\thispagestyle{empty}
\phantom{abc}
}
\def\makepagesmultipleof#1{
\newcount\a
\loop
\a=\value{page}
\divide\a by #1
\multiply\a by #1
\ifnum\value{page}=\a \else
\addemptypage
\repeat
}
% In the bottom of your document-clause, do this:
\makepagesmultipleof4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment