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?
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 .
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.
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.
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.
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With