General ⇒ Page numbering... again
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
As I stated earlier, omitting the \frontmatter and the \mainmatter command in thesis.tex should solve the problem. Please try this first.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: Page numbering... again
see the previous post - i did it...
cheers
cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
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.
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.
Now the desired result of arabic page numbering throughout the whole document should appear.
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}}
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}}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: Page numbering... again
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....
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....
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: Page numbering... again
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
Could you perhaps attached those files so I could compare them with mine?
Cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
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
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: Page numbering... again
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.
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.