Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change page layout in the middle of a LaTeX document

Tags:

layout

latex

I'm looking for a way to change some page layout dimensions in the middle of a LaTeX document. The reason is, I'd like to have smaller margins and longer lines in the "References" section of my report document (basically because short lines aren't so important there and I can save space).

In my preamble I have (works fine):

\setlength\textwidth{130mm}
\setlength\oddsidemargin{14.6mm}

In the document I simply try to re-set them at the right point but they're ignored.

... last paragraph ends here.

\newpage
\setlength\textwidth{150mm}      % +20mm text width
\setlength\oddsidemargin{13.6mm} % -10mm left margin (so it stays centered)

References ...

The geometry package is useful but only for global adjustments in the preamble, so I can't use it here. Is it not possible to change the page layout at some point in the document?

like image 532
glts Avatar asked Dec 18 '22 01:12

glts


2 Answers

The geometry package offers facilities to do this.

like image 125
Joseph Wright Avatar answered Feb 12 '23 10:02

Joseph Wright


I think the changepage package in CTAN does what you're looking for but I can't say that I've ever tackled this problem myself.

like image 25
icio Avatar answered Feb 12 '23 08:02

icio