25

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 Answers1

23

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}