GeneralExcluding part titlepages from page numbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Ruhen
Posts: 1
Joined: Thu Apr 24, 2008 8:05 pm

Excluding part titlepages from page numbering

Post by Ruhen »

Hey all

I'm new to this forum and writing my thesis in latex atm. Still kinda new to latex too.

I got my document divided in parts, and each of those parts has a nice titlepage in de final document (I guess thats normal). But I would like to exclude those titlepages from the (global) page numbering, so that there is no pagenumber on the titlepages and the counter just skips these pages.

Any idea if this is possible and how it can be done? I tried using "\thispagestyle{empty}" but that doesnt seem to work, maybe I'm putting it in a wrong place orso? Any help would be really appreciated :)

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

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

Excluding part titlepages from page numbering

Post by Stefan Kottwitz »

Hi Ruhen,

welcome to the LaTeX Community board!
In general you should tell us more details, for instance the document class used by you. Sometime its even recommended to give a minimal working example to the board, then we could find a problem easier and could be able to provide specific help.

For the moment I take it that you are using the report class. Its \part command sets the pagestyle to plain and breaks the page after it. So let's try to hack into it ... I redefine the internal macro \@endpart. Additionally I create a counter to backup the page counter for being able to reset it. My relevant code for the preamble would be:

Code: Select all

Code, edit and compile here:
\newcounter{pagebackup}
\makeatletter
\newcommand*\std@endpart{}
\let\std@endpart\@endpart
\renewcommand*\@endpart{%
\setcounter{pagebackup}{\value{page}}%
\thispagestyle{empty}\std@endpart%
\setcounter{page}{\value{pagebackup}}}
\makeatother
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
I just followed my first idea, there may be different ways. If you have questions, just ask.

Stefan
LaTeX.org admin
Post Reply