How to Set Margins in LaTeX

Save

LaTeX, unlike many other word-processing programs, does not use a graphical user interface, or GUI, to show the changes made to a document. Instead, you must specify the changes using a series of markup codes. This includes setting the margins, an effect that alters the entire document.

  • Open a text editor, such as Windows Notepad.

  • Type the following to define a simple LaTeX document:

    \usepackage{anysize}

    \begin{document}

    \end{document}

    The "anysize" package provides a simple "marginsize" command.

  • Use the "marginsize" command to alter the size of the margins. Type it before the "begin" tag:

    \marginsize{1 cm}{2 in}{4 em}{6 pt}

    The arguments, in order, are for the left, right, top and bottom margins. You can use any LaTeX-understood unit to define the margin sizes.

References

Promoted By Zergnet

Comments

You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

M
Is DIY in your DNA? Become part of our maker community.
Submit Your Work!