GeneralLeft/even pages numbering issues

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
StarGhost
Posts: 5
Joined: Thu May 15, 2008 10:02 am

Left/even pages numbering issues

Post by StarGhost »

Hello everyone,

I'm just a newbie to LaTeX, and recently got frustrated with trying to number my pages. I know that normally left pages should be even-numbered, and right pages should be left-numbered, and I've read many places that this is a default in LaTeX.

However, it's always the opposite with me. I've spent efforts on different configurations, but it just doesn't work. Here are some of my code:

Code: Select all

\documentclass[12pt,a4paper,twoside,openany]{book}
\RequirePackage{tocloft}
\usepackage{url}
\usepackage{graphicx}
\urlstyle{leostyle}
%\pagestyle{headings}
\usepackage{amsmath, amsthm, amsfonts, amssymb}
\newtheorem{proposition}{Proposition}[section]
\newtheorem{definition}{Definition}[section]
\newtheorem{theorem}{Theorem}[section]
\newenvironment{remark}[1][Remark.]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
\renewcommand{\thefootnote}{\fnsymbol{footnote}}
\usepackage{pseudocode}
\usepackage{setspace}  
\usepackage{mathrsfs}
\usepackage{tabularx}
\usepackage[longend,linesnumbered,algosection,ruled,noline]{algorithm2e}
\usepackage{sidecap}
\usepackage{multirow}

%Use of fancy headers
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhf{}
\lhead{\textsl{\nouppercase{\leftmark}}}
\chead{}
\rhead{\thepage}
I use MikTeX and TeXnicCenter together to generate my document, usually to PDF form. Anyone has any idea on how to solve this, please advice. I appreciate your considerations.

Regards,

SG.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Re: Left/even pages numbering issues

Post by Stefan Kottwitz »

Hi,

perhaps do you mean just the twosided screen display of the pdf? Or how you distinguish left and right pages, are the margins inappropriate?

Stefan
LaTeX.org admin
StarGhost
Posts: 5
Joined: Thu May 15, 2008 10:02 am

Left/even pages numbering issues

Post by StarGhost »

Stefan_K wrote:Hi,

perhaps do you mean just the twosided screen display of the pdf? Or how you distinguish left and right pages, are the margins inappropriate?

Stefan
Hi Stefan,

Sorry for a misinterpretation. Specifically, what I mean is that I have left and right pages (which are intuitive to me when looking at the PDF since they are left and right margined, i.e., pages with larger space on the left side of the text are right pages, and vice versa).

So the problem is: the right pages are even-numbered, and I would like them to be odd-numbered. Initiatively I thought that resetting the page counter using \setcounter would solve the problem, but then the margins are also switched, which is nonsense, and it means that left pages are always sticked with odd numbers, no matter what I've configured.

Thanks for helps.

SG.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10347
Joined: Mon Mar 10, 2008 9:44 pm

Left/even pages numbering issues

Post by Stefan Kottwitz »

Hi,
StarGhost wrote:pages with larger space on the left side of the text are right pages, and vice versa
no, the other way is intended. Just imagine an open book or a left page and a right page next to each other. The left, middle and right whitespace are intended to be equal. The whitespace in the middle consists of two inner margins. That's why the inner margin could be half of the size of the outer margin, and right pages would have a smaller margin on the left side.

If you would loose space because of the binding you could introduce a binding correction. For instance KOMA classes have an option for this purpose.

I just wanted to clarify why left and right pages are already numbered correctly in your document. Changing the inner and outer margins is another subject and could be done using typearea or geometry.

Stefan
LaTeX.org admin
StarGhost
Posts: 5
Joined: Thu May 15, 2008 10:02 am

Re: Left/even pages numbering issues

Post by StarGhost »

Thank you very much Stefan, you gave me a new insight to this problem.

I've solved it using geometry, and now everything looks fine.

Regards,

SG.
Post Reply