TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I set my \textwidth and \textheight in the preamble and would like to change both for some pages. How can this be done? E.g., the following example for \textwidth appears to work for the page number, but not for the text:

\textwidth=5cm \textheight=5cm
A \hfill B
\eject \textwidth=10cm
A \hfill B

Output (true to scale):

share|improve this question
up vote 25 down vote accepted

You can use \newgeometry and \restoregeometry from the geometry package:



share|improve this answer
That's great - thanks. I had given up on the geometry package after it frustrated me in this question: tex.stackexchange.com/questions/6834/… – Frank Seifert Mar 14 '11 at 22:11
Is there a way to change the text column width mid-page? – cjm Apr 26 at 4:21

Your Answer


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.