General ⇒ Page numbering... again
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
- Posts: 58
- Joined: Sun Apr 27, 2008 12:50 pm
Re: Page numbering... again
cheers
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page numbering... again
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}}
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
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
- Attachments
-
- thesis.pdf
- thesis.tex compiled with only the above mentioned changes.
- (140.51 KiB) Downloaded 359 times
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
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
- Attachments
-
- thesis.tex
- Modified version of the original thesis.tex
- (8.87 KiB) Downloaded 307 times
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
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.