LaTeX forum ⇒ Page Layout ⇒ Switching the margin-size between left and right margin

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
rbks
Posts: 3
Joined: Wed Jun 26, 2019 6:57 am

Switching the margin-size between left and right margin

I have the following MWE:

\documentclass[14pt, extrafontsizes]{memoir}     \usepackage{blindtext}      \begin{document}     \mainmatter    \chapter{One}    \blindtext      \end{document}

This produces the following document:

Untitled.png (76.02 KiB) Viewed 678 times

Now the widest margin is on the right for odd pages and left for even pages. Is there a way to reverse/switch the left-right margins, so the widest margin is on the right for even pages and left on odd pages?

Johannes_B
Site Moderator
Posts: 4100
Joined: Thu Nov 01, 2012 4:08 pm
But the default you see is the typographical standard and done in every book for decades.

Do you really want to change this?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

rbks
Posts: 3
Joined: Wed Jun 26, 2019 6:57 am
Yes, I need this. The thing is that I'm writing a book in Persian (which is read from right to left), so this change is necessary for my document.

Johannes_B
Site Moderator
Posts: 4100
Joined: Thu Nov 01, 2012 4:08 pm
But wouldn't the inner side of the book still be the inner side?

EDIT: Crosspost
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

kaiserkarl13
Posts: 636
Joined: Tue Mar 25, 2008 5:02 pm
You can change the margins with the lengths \oddsidemargin and \evensidemargin, though using something like the geometry package might be more of what you're looking for. The right margin on each page is implied by the sum of the odd or even side margin and \textwidth.

As other comments have implied, make sure you actually need to do this and that it's a good idea before wading into the innards of the document class.

Ijon Tichy
Posts: 139
Joined: Mon Dec 24, 2018 10:12 am
memoir also provides commands to modify the text area or the margins, aka the page layout. See chapter two in the memoir manual. But before doing so, you should indeed be sure, that there isn't another mistake or misunderstanding or misconception, because with xepersian I cannot reproduce your problem:

\documentclass[14pt, extrafontsizes]{memoir} \usepackage{xepersian}\settextfont{XB Niloofar} \usepackage{blindtext} \begin{document} \mainmatter% not neeeded\chapter{One}\Blindtext \end{document}

already produces a document with switched margins. Please note: The PDF always contains the pages in reading order not in printing order. So you have to print the document in reverse order.