GeneralPage numbering... again

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page numbering... again

Post by localghost »

As I stated earlier, omitting the \frontmatter and the \mainmatter command in thesis.tex should solve the problem. Please try this first.

Recommended reading 2024:

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

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

kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Page numbering... again

Post by kostoglotov »

see the previous post - i did it...
cheers
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page numbering... again

Post by localghost »

Regardless of any errors when compiling, I finally have been able to find out what causes the roman page numbers. It's a section in the class file.

Code: Select all

%:-------------------------- title page layout -----------------------

% starts roman page numbering until chapter 1
% important to avoid two pages numbered 1 and 2 which may cause bad links
% bug: cover i + back side ii and then numbering restarts with i; should be iii
\renewcommand{\thepage}{\roman{page}}
This is a completely senseless definition, since \frontmatter automatically starts roman page numbering and \mainmatter switches to arabic page numbering.

You could now set the last line as comment. Since this class file is a template and therefore should be untouched, the better way would be to include a similar line into your preamble to override this.

Code: Select all

\renewcommand{\thepage}{\arabic{page}}
Now the desired result of arabic page numbering throughout the whole document should appear.
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Page numbering... again

Post by kostoglotov »

I have tried this one already. Yes, I have now only arabic letters there but the problem I have to face now is that I have more than one numbering there (as a result of that pre-defined "% starts roman page numbering until chapter 1") - from chapter 1 on, numbering is perfect but numbering until chapter 1 begins is messed up.
Title = nothing, following page = 2, but next one is 1 again, then two, then 1 again... and then from chapter 1 on it is ok....
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page numbering... again

Post by localghost »

I cannot reproduce that. I did the redefinition of the page numbers to arabic in the preamble, omitted the two commands \frontmatter and \mainmatter in thesis.tex and got a continous arabic page numbering. The result of my efforts can be seen in the attachment. Problem solved for me.
Attachments
thesis.pdf
thesis.tex compiled with only the above mentioned changes.
(140.51 KiB) Downloaded 345 times
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Page numbering... again

Post by kostoglotov »

Perfect... I do not know why it doesn't work for me though... The only thing I did differently was that I wanted to have numbered "declaration" etc as well so I deleted "\pagestyle{empty}" from that cls file. But it shouldn'e matter should it?
Could you perhaps attached those files so I could compare them with mine?
Cheers
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Page numbering... again

Post by localghost »

The only changes I did affect the original version of thesis.tex (as I already stated more than once). The changed file is in the attachment.
Attachments
thesis.tex
Modified version of the original thesis.tex
(8.87 KiB) Downloaded 300 times
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Page numbering... again

Post by kostoglotov »

thank you
kostoglotov
Posts: 58
Joined: Sun Apr 27, 2008 12:50 pm

Re: Page numbering... again

Post by kostoglotov »

Thank you a lot for your help - honestly.

Could I have two more question?
1/ If I need to start numbering from second sheet, i.e. the second page (with "Reviewer: Name" etc.) would be number 1, what should I do?

2/ How to get rid of the lines on top of the page (as seen on page 2 or 6)? Because since I want to have numbered ALL pages I put "%" mark in front of "{\pagestyle{empty}" in the cls file (for example under the heading ACKNOWLEDGEMENT) and it makes ACKNOWLEDGEMENT page numbered but with that line on top of it...

Thank you again,
A.K.
Post Reply