Page LayoutInconsistent page numbering

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
MacGuffin
Posts: 3
Joined: Fri Aug 06, 2010 11:23 am

Inconsistent page numbering

Post by MacGuffin »

Hi all

I'm having a problem getting the page numbers of my document to display correctly. I'm writing my degree dissertation, and I need to include an abstract. I currently have:

Code: Select all

\documentclass[10pt,twoside,a4paper]{report}
\usepackage{mystyle}
\begin{document}
\sffamily

\input{./tex/titlepage.tex}
\cleardoublepage
\subfile{./tex/abstractpage.tex}
\tableofcontents
\listoffigures
\listoftables
\cleardoublepage

\begin{multicols}{2}

%% BODY OF DOCUMENT %%

\end{multicols}
\end{document}

So my problem is in two parts: firstly, the page number is displayed on the blank page between the title and the abstract as '2', then the abstract with no page number, then the ToC appears, also marked as page '2', and then numbering continues from there. If I could make the '2' on the blank page disappear that would be enough to satisfy what I need.

The second part of the problem is that the whole document is formatted in sans serif using the \sffamily command, but I can't get the page numbers to display in sans serif at all.

Any help here would be greatly appreciated.

Thanks

McG
Last edited by MacGuffin on Tue Aug 10, 2010 6:59 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.

meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Inconsistent page numbering

Post by meho_r »

Hi,

We'll need a complete Minimal Working Example.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Inconsistent page numbering

Post by frabjous »

To typeset an entire document in sans serif, you’d be better off with something like:

\renewcommand*{\familydefault}{\sfdefault}

to make sans-serif the default font. \sffamily isn’t going to work as well for this. I think that should fix that issue.

For the other issue, yeah, we need to see a full working document and not a bunch of \input commands which link to who-knows-what?
MacGuffin
Posts: 3
Joined: Fri Aug 06, 2010 11:23 am

Inconsistent page numbering

Post by MacGuffin »

Thanks guys - the formatting problem is now solved.

That just leaves the weird page numbering. I think this pretty accurately sums up the problem (I've removed all formatting commands and anything relating to page layout, etc). It compiles without errors, but it still has the page numbering problem.

Code: Select all

\documentclass[10pt,twoside,a4paper]{report}
\begin{document}

\begin{titlepage}
\begin{center}
Title//
My Name//
Date
\vfill
\end{center}
\end{titlepage}
\cleardoublepage

\begin{abstract}
text
\end{abstract}

\tableofcontents
\listoffigures
\listoftables
\cleardoublepage

text

\end{document}
Thanks for any help.

McG
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Inconsistent page numbering

Post by Stefan Kottwitz »

The abstract environment uses a titlepage environment internally. The latter resets the pagecounter. For example, the option notitlepage would fix the numbering and the abstract would be typeset differently.

Code: Select all

\documentclass[10pt,twoside,a4paper,notitlepage]{report}
Stefan
LaTeX.org admin
MacGuffin
Posts: 3
Joined: Fri Aug 06, 2010 11:23 am

Re: Inconsistent page numbering

Post by MacGuffin »

Thanks, that's solved the numbering problem although it does give me a formatting issue with the abstract page, but it's nothing I can't manage now.

Thanks.
McG
Post Reply