Possible Duplicate:
Automatically increase PDF page height

Is it possible to have LaTeX use a single infinite page?

I don't know if the PDF file format even supports this, but I see "Screen formatted" PDFs all the time, which use a layout more pleasing to read on a monitor, but for some reason they still have pages. I don't see much point in a screen-based PDF having pages, at least when Letter and A4 options are also offered. Is there a way to make pageless documents with LaTeX?

  • 1
    Have a look at Automatically increase PDF page height, which does exactly that, but also allows for manual page breaks using \Newpage. Nov 24, 2011 at 20:42
  • 2
    I agree that this is a duplicate, could the next person along vote to close it? Thank you.
    – Canageek
    Nov 24, 2011 at 23:43

1 Answer 1


We did experiment with a single, long page as well. We use the geometry package and defined

\geometry{paperwidth=170mm, paperheight=16383pt, left=40pt, top=40pt, textwidth=280pt, marginparsep=20pt, marginparwidth=100pt, textheight=16263pt, footskip=40pt}

Adjust the widths and the other parameters to your liking. Please note that a page height of more than 16383pt leads to an error. (There is an internal number somewhere that must be smaller than 2^14-1.)

Then, we got confused when floats where still breaking onto a new page. You also need


to increase the number of floats allowed on one page. With a lot of floats, you might have to use the morefloats package as well.

  • How well did your experiment work? I'm worried that PDF readers load a page at a time, so a giant page would lead to problems.
    – Canageek
    Nov 24, 2011 at 23:32
  • We did get some good results while using it as some kind of draft mode. Before, we ran into problems with \marginpars running out of the bottom page. This was adjusted only in the last version to avoid work at in-between stages of the book-project. But then, it was rendered obsolete with the marginfix package, the package automatically adjusts the marginpars.
    – Andy
    Nov 25, 2011 at 7:24
  • Did you have any memory use problems or such?
    – Canageek
    Nov 26, 2011 at 0:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.