Page LayoutOnly odd numbers on page numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
PeSoberbo
Posts: 1
Joined: Fri Oct 25, 2013 10:04 pm

Only odd numbers on page numbering

Post by PeSoberbo »

I'm working on my thesis and having some page numbering troubles. In the ToC page numbering (two pages), I need just odd numbers. The problem is that when I call \tableofcontents, I can't manipulate the pages individually, so I can't call \setcounter. I'm wondering if its possible to fill the between ToC pages with blank pages, or if its possible to have a counter that simply uses just odd numbers.
Last edited by cgnieder on Sat Oct 26, 2013 4:30 pm, edited 1 time in total.

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Only odd numbers on page numbering

Post by kaiserkarl13 »

Are you sure you don't just want something like the openright option to the document class (which says, "Only open new chapters on right-hand pages")? I can't think of another reason you would literally want page numbers only on odd-numbered pages.

If you truly do want page numbers every other page, try using TeX's \ifodd primitive, like so:

Code: Select all

\documentclass{article}

\renewcommand\thepage{\ifodd\value{page}\arabic{page}\fi}
\begin{document}
Hello
\newpage
Hello
\newpage
Hello
\newpage
Hello
\newpage
Hello
\newpage
Hello
\newpage
Hello
\newpage
Hello
\end{document}
Post Reply