Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Latex - Change margins of only a few pages

Tags:

latex

I have a Latex document where I need to change the margins of only a few pages (the pages where I'm adding a lot of graphics).

In particular, I'd like to change the top margins (\voffset). I've tried doing:

\addtolength{\voffset}{-4cm}  % Insert images here  \addtolength{\voffset}{4cm} 

but it didn't work. I've seen references to the geometry package, but I haven't found how to use it for a bunch of pages, and not for the whole document.

Any hints?

like image 512
pgb Avatar asked Nov 03 '09 22:11

pgb


People also ask

How do I change the margins on a specific page in LaTeX?

Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry .

Can you change the margin of just one page?

Go to the Layout tab and click the Margins drop-down menu. Once the different preset margin formats are displayed, select one from the selection that suits your needs. If what you need is not in the options, select Custom Margins. This will launch the Page Setup dialogue box in the middle of your window.

How do you set different margins for odd and even pages in LaTeX?

LaTeX uses different margins on odd and even pages only if the twoside option is activated in the \documentclass line. would set the usual "oneside" textwidth. Choose the value for <XX>pt to suit your needs. Check the manual of geometry for other options, in particular for setting the text height.

How do I change the margins in LaTeX 1 inch?

Setting margins with built in lengths. these lengths and \textheight. (3) The left margin and the top margin are measured from a default position of 1 inch. Thus, \oddsidemargin=0in results in 1 inch real margin, \oddsidemargin=-0.5in results in 0.5 inch real margin, etc.


1 Answers

Use the "geometry" package and write \newgeometry{left=3cm,bottom=0.1cm} where you want to change your margins. When you want to reset your margins, you write \restoregeometry.

like image 114
Kevin Chen Avatar answered Dec 09 '22 00:12

Kevin Chen