Typesetting an infinite page

How would I go about typesetting a document which will end up being printed on a long continuous roll of paper. The paper is 21cm wide (a vertical A4 page width) and infinitely long.

Obviously I don't want my output to be infinite in length. I just want to carry on writing without any page breaks (and consequently any page numbers).

The footers would ideally appear at the end of the text.

1 Answer

You can set the paper size manually using geometry

\documentclass{article}
\usepackage[paperwidth=21cm,paperheight=500cm,margin=1in]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1-150]
\end{document}


But 500cm is not infinite.

You can use standalone class as suggested by touhami so that height is adjusted automatically.

\documentclass[border=1in]{standalone}
\usepackage{lipsum}
\begin{document}
\begin{minipage}{21cm}
\lipsum[1-150]
\end{minipage}
\end{document}

• Yes; and I would like this to happen automatically such that my page will scale with the amount of text I have, such that no matter how much mote text I add it will always be the right length for it. – MarcinKonowalczyk Sep 2 '15 at 15:21
• @447xpro Use standalone. See the edit. – user11232 Sep 2 '15 at 15:28
• Cheers. That's what I've needed. – MarcinKonowalczyk Sep 2 '15 at 15:31