next up previous home.gif
Next: How can I change line spacing? Up: LaTeX: Frequently Asked Questions Previous: How can I start a new paragraph?

How can I change margins?

Margins are determined by the length command \topmargin, \oddsidemargin, and \evensidemargin. The length commands \textwidth and \textheight are also useful. You need to specify the value of these lengths in the preamble (i.e., part of the input file preceding the \begin{document} command. For example, see the following specification.
\documentclass{article}
$\cdots$
\topmargin = -0.6 in
\oddsidemargin = 0.0 in
\evensidemargin = 0.0 in
\textheight = 9.5 in
\textwidth = 6.5 in
$\cdots$
in is the abbreviation of inch, but your output shouldn't look like the lengths are in inches when you print your output file. There are other units of lengths, such as cm, em, ex, etc. For more detail, see the LATEX book.



Copyright © 2002, Naoya Kaneko
Hosted by www.Geocities.ws

1