LaTeX forum ⇒ 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).
rbks
Posts: 3
Joined: Wed Jun 26, 2019 6:57 am

Switching the margin-size between left and right margin

Postby rbks » Wed Jun 26, 2019 3:04 pm

I have the following MWE:

Code: [Select all] [Expand/Collapse] [Download] ({untitled.tex})
  1. \documentclass[14pt, extrafontsizes]{memoir}
  2.  
  3. \usepackage{blindtext}
  4.  
  5.  
  6. \begin{document}
  7.  
  8. \mainmatter
  9. \chapter{One}
  10. \blindtext
  11.  
  12.  
  13. \end{document}


This produces the following document:


Untitled.png
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?

User avatar
Johannes_B
Site Moderator
Posts: 4100
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jun 26, 2019 3:12 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

Postby rbks » Wed Jun 26, 2019 3:28 pm

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: 4100
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed Jun 26, 2019 6:02 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

Postby kaiserkarl13 » Wed Jun 26, 2019 7:15 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.

User avatar
Ijon Tichy
Posts: 139
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Fri Jun 28, 2019 7:28 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:

  1. \documentclass[14pt, extrafontsizes]{memoir}
  2.  
  3. \usepackage{xepersian}
  4. \settextfont{XB Niloofar}
  5.  
  6. \usepackage{blindtext}
  7.  
  8. \begin{document}
  9.  
  10. \mainmatter% not neeeded
  11. \chapter{One}
  12. \Blindtext
  13.  
  14. \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.


Return to “Page Layout”

Who is online

Users browsing this forum: No registered users and 2 guests