Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want a long page length, and even though the PDF output shows the long page, I can only get text placed on a portion of it. I used code from this question about repeating a long block of text until it fills a page, and added the geometry package along with the adjustments for the width and height that I want. But, this does not fill up the page as I want. This is not a problem with the code in the above example, as I am seeing similar behavior in my own files: the page looks long, but has a lot of blank space and things get moved to the next page.

\documentclass{article}
\usepackage[left=10px,right=10px,top=10px,bottom=10px]{geometry}
\setlength{\paperwidth}{8.0in}
\setlength{\paperheight}{33.0in}

\usepackage{lipsum}
\newsavebox\widgetbox
\begin{document}

\setbox\widgetbox\vbox
  {\vspace*{6pt}\noindent Type of Widget: \dotfill \break
  Observations: \dotfill \break
  \null\dotfill\par}

\lipsum[1]

\cleaders\copy\widgetbox\vskip0pt plus 1fill
\end{document}

Also, any idea why the lipsum text is getting cut of on the right? I would have though that LaTeX would have adjusted for the narrower text?

share|improve this question

1 Answer 1

up vote 7 down vote accepted

You can solve both problems by using the paperwidth and paperheight options geometry provides instead of setting the values "manually" with \setlength:

\documentclass{article}
\usepackage[left=10px,right=10px,top=10px,bottom=10px,paperwidth=8in,paperheight=33in]{geometry}

\usepackage{lipsum}
\newsavebox\widgetbox
\begin{document}

\setbox\widgetbox\vbox
  {\vspace*{6pt}\noindent Type of Widget: \dotfill \break
  Observations: \dotfill \break
  \null\dotfill\par}

\lipsum[1]

\cleaders\copy\widgetbox\vskip0pt plus 1fill
\end{document}
share|improve this answer
    
Thanks. Works great. –  Peter Grill Apr 21 '11 at 18:26
    
@diabonas: Why do you use the px unit? It is specific to pdftex and meant for uning it with images –  Herbert Nov 12 '11 at 14:48
    
@Herbert I used the same specifications the OP provided in his question. –  diabonas Nov 13 '11 at 11:24
    
@diabonas: Ah sorry, didn't realized that ... then it is a comment to Peter –  Herbert Nov 13 '11 at 17:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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