Page LayoutBizarre numbering in contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
catherine
Posts: 2
Joined: Mon Sep 14, 2009 1:50 pm

Bizarre numbering in contents

Post by catherine »

OK, so I'm trying to figure out the details of a friend's thesis, and we've run into a problem with the table of contents. We're dealing with a standard template. It contains the following code:

Code: Select all

Code, edit and compile here:
\newcommand{\preface}{\chaptertoc{\prefacename}{\prefacename}}
\newcommand{\foreword}{\chaptertoc{\forewordname}{\forewordname}}
\newcommand{\acknowledgements}{\chaptertoc{\acknowledgementsname}{\acknowledgementsname}}
...
\newcommand\contentsname{Contents}
\newcommand\listfigurename{List of Figures}
\newcommand\listtablename{List of Tables}
\newcommand\prefacename{Preface}
\newcommand\forewordname{Foreword}
\newcommand\acknowledgementsname{Acknowledgements}
\newcommand\draftname{Preliminary Draft}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Which is called in the latex document as follows:

Code: Select all

Code, edit and compile here:
\tableofcontents
\listoffigures
\listoftables
\acknowledgements
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Now, the problem is with the page numbering. In the table of contents, we get the following:
Table of Contents ... ii
List of Figures ... iv
List of Tables ... xi
Acknowledgements ... ii

The problem isn't specific to the acknowledgements, it happens to whatever the last item in this set. The next item in the Contents is the abstract, and everything works fine from there on.

Recommended reading 2024:

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

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

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

Bizarre numbering in contents

Post by Stefan Kottwitz »

Hi Catherine,

welcome to the board!
Without to see more code, especially that template, the cause is hard to guess. The problem could be caused for instance by a \pagenumbering (or \frontmatter etc.) command, that would reset the page number.

Stefan
LaTeX.org admin
catherine
Posts: 2
Joined: Mon Sep 14, 2009 1:50 pm

Bizarre numbering in contents

Post by catherine »

I don't think it's a problem with a \pagenumbering command. I've tried putting in \setnumber{page}{12} right before the \acknowledgements command, and it doesn't do anything. Are attachments allowed here? I can post the entire template if that would be helpful.

The code dealing with the frontmatter part is here

Code: Select all

Code, edit and compile here:
\newcommand\frontmatter{%
\cleardoublepage
\@mainmatterfalse
\pagenumbering{roman}}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Bizarre numbering in contents

Post by Stefan Kottwitz »

Yes, attachments are allowed, with more information help could be easier provided.

Stefan
LaTeX.org admin
Post Reply