Page Layoutmargins in memoir package

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
siam
Posts: 2
Joined: Sat May 02, 2009 6:47 pm

margins in memoir package

Post by siam »

Hi,

I write a article used memoir package. Unluckily I have a problem with setup a margins. I need to set: top, lower, right margins = 2.5cm and left margin = 3cm. Page size is A4 format.

Can anyone help me? I read the manual for this package, but I lose - how can I do it. I don't need any "margin note", and anything else.
I need to have only: 3 cm left margin, 15.5 cm text, 2.5 cm right margin.

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

margins in memoir package

Post by Keta »

Hi siam,

If you are using the oneside option, the code would be like the following:

Code: Select all

\documentclass[oneside,a4paper]{memoir}

\usepackage{lipsum} % dummy text

\setlrmarginsandblock{3cm}{2.5cm}{*}
\setulmarginsandblock{2.5cm}{2.5cm}{*}
\checkandfixthelayout

\begin{document}

\lipsum
\lipsum

\end{document}
The default option is twoside. Rather than left/right margins, normally one would set up the outer/inner, or fore-edge/spine, margins:

Code: Select all

\documentclass[a4paper]{memoir}

\usepackage{lipsum} % dummy text

\setlrmarginsandblock{3cm}{2.5cm}{*}
\setulmarginsandblock{2.5cm}{2.5cm}{*}
\checkandfixthelayout

\begin{document}

\lipsum
\lipsum

\end{document}
But if you still want to have fixed left/right margins, try the following:

Code: Select all

\documentclass[a4paper]{memoir}

\usepackage{lipsum} % dummy text

\setlrmarginsandblock{3cm}{2.5cm}{*}
\setulmarginsandblock{2.5cm}{2.5cm}{*}
\checkandfixthelayout
\setlength{\evensidemargin}{\oddsidemargin}

\begin{document}

\lipsum
\lipsum

\end{document}
siam
Posts: 2
Joined: Sat May 02, 2009 6:47 pm

Re: margins in memoir package

Post by siam »

Thank you very much Keta. It's working! :) I don't know, why I didn't solve this by myself. It seemed to me that I tried this solution, but I'm had to do something wrongly.
Post Reply