% nextpage.sty % % Provides additional \clear...page commands % % Author: Peter Wilson, Herries Press % Maintainer: LaTeX Project % Copyright 1996--2000 Peter Wilson % Copyright 2026--present LaTeX Project % Released under the LaTeX Project Public License 1.3c % % Changes in v1.1b - New maintainer (LaTeX Project) % Changes in v1.1a - New maintainer (Will Robertson) % \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{nextpage}[2026/10/12 v1.1b additional page commands] % clear to next page is: % \clearpage % \begin{macro}{\cleartoevenpage} % Like |\cleardoublepage| except that it skips pages until an even one, and % its optional argument is applied to the skipped page, if any. % The code is based on the kernel |\cleardoublepage| in \file{ltoutput.dtx}. % \begin{macrocode} \newcommand{\cleartoevenpage}[1][\@empty]{% \clearpage% \ifodd\c@page\hbox{}#1\clearpage\fi} % \end{macrocode} % \end{macro} % move to next page without flushing floats is: % \newpage % move to next even numbered page without flushing floats, % putting optional arg on skipped page, if any \newcommand{\movetoevenpage}[1][\@empty]{% \newpage% \ifodd\c@page\hbox{}#1\newpage\fi} % clear to next odd numbered page, % putting optional arg on skipped page, if any \newcommand{\cleartooddpage}[1][\@empty]{% \clearpage% \ifodd\c@page\else\hbox{}#1\clearpage\fi} % move to next odd numbered page without flushing floats, % putting optional arg on skipped page, if any \newcommand{\movetooddpage}[1][\@empty]{% \newpage% \ifodd\c@page\else\hbox{}#1\newpage\fi} \endinput % Example uses: % \cleartooddpage % same as \cleardouble page % \cleartooddpage[\thispagestyle{empty}] % No headings on the skipped page % \cleartoevenpage % go to next even numbered page % Next example puts text on a skipped page % \cleartoevenpage[\vspace*{\hfill}THIS PAGE LEFT BLANK\vspace*{\hfill}] %