# Add blank/empty page after every page automatically

I wrote my thesis and my school wants an one-sided print. The printing and binding will be done by a professional bookbinder. They only accept only two sided manuscripts.

My \documentclass:

\documentclass[
11pt,
ngerman,
onehalfspacing,
oneside
]{MastersDoctoralThesis}


Because of that I need to add a blank page after every page of content. I don't want to do this manually using \newpage or \clearpage because there are too many pages. Is there any LaTeX command (or package) to do this (automatically)?

• Should those empty pages be counted as well?
– user31729
Jan 7, 2018 at 15:13
• All empty pages should NOT be counted. Jan 7, 2018 at 15:15
• can you show code line with documentclass? which options you have there? Jan 7, 2018 at 15:22
• @Zarko Ok. Post updated. Jan 7, 2018 at 15:30
• This seems very strange to me, I would expect a binder/printer that was experianced in printing thesis to university thesis standards to be able to handle single-sided printing. Jan 7, 2018 at 19:10

A solution with package atbegshi. It hooks into \shipout, the internal command to ship out a page. The hook (\AtBeginShipout{...} adds an empty page before the actual page except for the first.

\documentclass{article}

\usepackage{atbegshi}
\AtBeginShipoutFirst{%
\AtBeginShipout{%
\AtBeginShipoutOriginalShipout\null
}%
}

\usepackage{blindtext}
\begin{document}
\blinddocument
\end{document}


Five pages are generated: 1st page, empty page, 2nd page, empty page, 3rd page.

• On atbegshi v1.19 see this issue Dec 9, 2020 at 18:40

I would use pdfpages to do this after the whole thesis is done, since you really have no need for a document with blank pages except to send to the printer, so it makes sense to keep the two documents separate.

\documentclass{article}
\usepackage{pdfpages}
\pagestyle{empty}
\begin{document}
\includepdf[pages=1-,pagecommand={\null\clearpage}]{thesis.pdf}
\end{document}