Page LayoutSetup margins of the paper

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Setup margins of the paper

Post by Lumy »

Hello.

Please help me to setup pages with: top=4cm, bottom=4cm, leftmargin4cm, rightmargin=4cm, a4paper.

Thank you very much.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Keta
Posts: 63
Joined: Tue Nov 25, 2008 1:00 pm

Setup margins of the paper

Post by Keta »

For customizing page dimension you can use the geometry package. Since you want all margins equal to 4cm, the code would look like:

Code: Select all

\documentclass[a4paper]{article}
\usepackage[margin=4cm]{geometry}

\usepackage{lipsum}
\begin{document}
\lipsum\lipsum\lipsum
\end{document}
The A4 specification is already put as a class option, so there is no need to repeat it for geometry. For other options and more advanced configuration refer to the manual. Hope this helped ;)
Lumy
Posts: 24
Joined: Tue Jan 06, 2009 2:41 pm

Setup margins of the paper

Post by Lumy »

I try your code but after compilation, my margins are: Top=4.3 cm, right=4.3cm, left=3,6cm, bottom=3.6cm. My code is

Code: Select all

\documentclass[a4paper]{book}
\usepackage[margin=4cm]{geometry}


\usepackage{layout}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wrapfig}

\usepackage{yhmath}


\usepackage{caption}

\captionsetup{%
  figurename=Fig.,
  tablename=tab.
}
\begin{document}
hhhhhh jjjjjjjjjj ghhhhhhhhh
\end{document}
I need to set mirror margins.

Can anybody help me?

Thank you very much.
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Setup margins of the paper

Post by phi »

How do you measure this? After inserting real text into your example document, I get exactly the same margins on every side.
Goicetty
Posts: 1
Joined: Thu Feb 12, 2009 11:08 pm

Setup margins of the paper

Post by Goicetty »

Hey, I need to set my margins to top=3cm, bottom=2.5cm, left=3cm, right=2.5cm, I,ve already try with geometry and it worked fine, but as the chapters go on my text body gets lower and lower until it reaches page border. I'm also using fancyhdr and set the margin to include foot and head and my paper size is letter.

Any ideas of why this is happening? and how can I fix it?

Here's my set up file...
Attachments
Tesis.tex
(5.12 KiB) Downloaded 960 times
Post Reply