Posted: 22nd July 2009 by Tim in LaTeX
Tags: , , ,

LaTeX documents, by default, set the page margins to be quite big. In many cases this is too much and we need to make some adjustments.

Margins are controlled with four settings:

• `\textwidth`, the width of the text on the page;
• `\hoffset`, the horizontal offset of the text (ie: how far the text is from the left of the page);
• `\textheight`, the height of the text on the page and
• `\voffset`, the vertical offset of the text (ie: how far the text is from the top of the page).

To keep things simple, we can build on the default LaTeX settings using the `\addtolength` command. So, to decrease the left and right margins by 1cm each we would:

```\addtolength{\textwidth}{2cm} \addtolength{\hoffset}{-1cm}```

Similarly, to decrease the top and bottom margins by 1cm each we would:

```\addtolength{\textheight}{2cm} \addtolength{\voffset}{-1cm}```

1. Gokul says:

Thanks a lot, helped me and my colleague out a lot 😀

2. Mtita says:

Thanks for your post. This is exactly what I was looking for. It’s helpful.

3. Ashish says:

Sir, I am writing a thesis in which i wants to add the chapter names in the to margin of every page. Please. tell me the package and commands ?

4. Luiz says:

Thank you, that’s exactly what I was looking for.