I am having some trouble placing text at the bottom of the next page. For some reason, the text is being printed at the bottom of the current page. I tried nesting but it only works for the first printing on next page command. Please help me fix this.
\documentclass{article}
\usepackage{atbegshi}
\usepackage{blindtext}
\usepackage{picture}
\newcommand{\printnextpage}[1]{
{\LARGE to print on bottom of next page }
\AtBeginShipoutNext{%
\AtBeginShipoutUpperLeft{%
\put(0.1\paperwidth,-0.95\paperheight){#1}%
}%
}
}
\begin{document}
\blindtext[2]
\printnextpage{i am at bottom}
\blindtext[7]
\printnextpage{im at bottom too}
\blindtext[9]
\end{document}
\printnextpageis used twice, then the second text will overwrite the first text, because they are placed at the same location. – Heiko Oberdiek Jun 15 '14 at 15:26\printnextpagehas two parts:\AtBeginShipoutNextis executed right away, but the text before can go on this or later pages. The way via references is more robust regarding the asynchronous output routine. But can you clarify the purpose of the whole exercise? I not sure thatatbegshiis the right approach. There are other ways like mark registers that could provide a better solution depending on the use case scenario. – Heiko Oberdiek Jun 15 '14 at 15:39