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.

6

1 Answer 1

24

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}
3
  • 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. Commented Sep 2, 2015 at 15:21
  • @447xpro Use standalone. See the edit.
    – user11232
    Commented Sep 2, 2015 at 15:28
  • Cheers. That's what I've needed. Commented Sep 2, 2015 at 15:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .