Page LayoutSwitching 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).
Post Reply
rbks
Posts: 3
Joined: Wed Jun 26, 2019 6:57 am

Switching the margin-size between left and right margin

Post by rbks »

I have the following MWE:

Code: Select all

\documentclass[14pt, extrafontsizes]{memoir}
     
    \usepackage{blindtext}
     
     
    \begin{document}
     
    \mainmatter
    \chapter{One}
    \blindtext
     
     
    \end{document}
This produces the following document:

Untitled.png
Untitled.png (76.02 KiB) Viewed 8814 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?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Switching the margin-size between left and right margin

Post by Johannes_B »

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

Switching the margin-size between left and right margin

Post by rbks »

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.

Thanks in advance.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Switching the margin-size between left and right margin

Post by Johannes_B »

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: 707
Joined: Tue Mar 25, 2008 5:02 pm

Switching the margin-size between left and right margin

Post by kaiserkarl13 »

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.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Switching the margin-size between left and right margin

Post by Ijon Tichy »

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.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply