Generalpagenumbering

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
noctilux
Posts: 2
Joined: Fri Feb 23, 2007 10:56 am

pagenumbering

Post by noctilux »

hello!

is there a possibility, that some pages are without a pagenumber and wihtout counting it?
(in my paper is after the titlepage a page with the bibliographic details and the abstract. this page should be without a pagenumber so that the TOC will start with "1")

Recommended reading 2024:

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

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

User avatar
pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

pagenumbering

Post by pumpkinegan »

Depending on what you are trying to do, you could try things like:

Code: Select all

\addtocounter{page}{-1}
This will let you subtract 1 page from the numbering.

Perhaps you will need a

Code: Select all

\thispagestyle{empty}
somewhere. This will clear the page of the pagenumber.

The simple case would look something like:

Code: Select all

\documentclass[12pt,a4paper,titlepage]{article}
\begin{document}

\begin{titlepage}
\vspace*{3cm}
\begin{center}
\Huge {Title of report} 
\end{center}
\vspace{2cm} 
\begin{center} 
\Large {Firstname Surname} \\[3pt]  
\textit{Affiliation} \\ 
\textit{Address} \\ [1cm] 
\today \end{center}
\end{titlepage}

\clearpage
\thispagestyle{empty}
\section{Abstract and bibliography section}
\clearpage
\addtocounter{page}{-1}
\section{First section}

\end{document}
However, if you are using a style file or some custom class, this may not be straightforward.

Patrick.
hormiga123
Posts: 9
Joined: Mon Mar 10, 2008 7:23 pm

Re: pagenumbering

Post by hormiga123 »

Does anyone know whether it's feasible to display pagenumbers centered within hyphens? (e.g. -1-)
If yes how?

Many thanks!
balf
Posts: 158
Joined: Sat Jan 12, 2008 1:11 am

Re: pagenumbering

Post by balf »

Quite easy :in your preamble, simply write:
\renewcommand{\thepage}{-- \arabic{page} --}
if you want an endash.

B.A.
hormiga123
Posts: 9
Joined: Mon Mar 10, 2008 7:23 pm

Re: pagenumbering

Post by hormiga123 »

Thanks already!
Unfortunately it is a little bit more complicated:
I am working with lyX so I only use pieces of Latex code here and then in the document.

I don't have a page number on the first page, then the table of contents, figures, tables etc is numbered in roman, then it begins anew with arabic page numbers. So far my code on the relevant pages looks the following:

On the first pages:
\pagestyle{myheadings}\pagenumbering{Roman}

Later on:
\pagestyle{myheadings} \pagenumbering{arabic}

Now i'd only like to center them and have the dashes...
Post Reply