I'm writing a two-sided document with a binding margin. For certain reasons, I need to change the page number at some point, so what used to be an even-numbered page is now odd-numbered. This makes the geometry package arrange this page as a recto (right-of-margin) rather than a verso (left-of-margin) page - while I need the recto-verso pairs to continue, i.e. I need the page to be a verso.
MWE follows (the showframe illustrates that the margins are the same rather changing from recto to verso).
\documentclass{article}
\usepackage[showframe,twoside]{geometry}
\begin{document}
This is the first page. It should be a right-of-binding page (recto).
\clearpage
\setcounter{page}{3}
This is the second page; it should be a left-of-binding page (verso) - but it isn't.
\clearpage
This is the third page; it should be a right-of-binding page (recto) - but it isn't.
\end{document}
Background: I'm writing my Ph.D. thesis, which is mostly English but has a Hebrew part, which must be numbered differently. Also, Hebrew is an right-to-left language so the pages go in on the other end of the binding, i.e. the Hebrew cover page is a left-of-binding page which goes in 'last' when leafing through the bound booklet left-to-right. I output the Hebrew sheets from first to last, after the last English sheets, then take the whole bunch of Hebrew sheets, and flip them all together and re-place them to get the effect I described. The Hebrew part numbering begins at 1 on a left-of-binding page (not the Hebrew cover page btw.)
Notes:
- Please don't suggest I not do this, or change the page number to something even instead of odd, etc. This is a legitimate need. Other people might want to output a two-sided document with binding margins in which page numbers go 1,1,2,2,3,3,4,4.
- A workaround is to 'manually' flip the margins, as suggested by Schweinebacke. But this is not satisfactory as there is also the issue of margin notes and possibly other LaTeX code which might depend on whether the page is a verso or a recto rather than the margin sizes.
- A solution should not assume any of the details from my background. Specifically, do not assume that the content on the re-numbered page is in Hebrew, or Right-to-Left etc.
geometryprints the frame recto/verso based on whether/not the page counter is odd/even. And, since\pagenumbering{...}resets the counter to 1, it produces the wrong display. – Werner Nov 24 '11 at 19:44geometrythat decides wether a page is a left or a right one. It's the LaTeX kernel that decides, that pages with oddpagecounter use\oddsidemarginand with evenpagecounter use\evensidemargin. Decision for the margin used for margin notes are done in the same kind. And if a package need such a decision it should use\ifodd\c@pagetoo. Unfortunately some broken packages may use\number\thepageinstead of\c@pageor\value{page}. Because of this my alternative, that makes odd/even numbers show an even/odd number may fail sometimes too. – Schweinebacke Nov 25 '11 at 9:52