Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do not count \part{} page in latex

Tags:

latex

i do'nt want to count the page number when i use \part{}, for example

...........
.         .
.         .
.         .
.    4    .
...........
...........
.         .
. Part I  .
.         .
.         .
...........

...........
.         .
.         .
.         .
.   5     .
...........

How can i get it?

like image 726
Luiguis Avatar asked May 14 '10 02:05

Luiguis


1 Answers

This will decrease the page number by one:

\addtocounter{page}{-1}

This will suppress the page number on the current page: (which you can leave out if the page number currently doesn't show up)

\thispagestyle{empty}

So, you can put together your own macro (I'm calling it \mypart but name it what you like) to do all three things at once:

\newcommand{\mypart}[1]{\part{#1}\addtocounter{page}{-1}\thispagestyle{empty}}
like image 147
Etaoin Avatar answered Oct 01 '22 04:10

Etaoin