Text FormattingTOC - page count

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Dpoly
Posts: 2
Joined: Mon Dec 31, 2012 5:11 pm

TOC - page count

Post by Dpoly »

Hello Community,

I write my master thesis with Lyx and I have a problem with the page count of the TOC. I use the installed thesis template from Lyx.

The problem is that I add my abstract before the table of contant and now I have two page i (roman page count). The aim is too have only one i and the TOC as ii/following page. I have tested the function:

Code: Select all

\setcounter{page}{2}
It doesn't worked... .

Is there a solution / more elegant way to count the pages in roman?
(I read many on google, but only with change the whole pre-latex code and I have no glue about it...)

Thanks,
Dpoly


P.s.: I'm big noob concers to Lyx/Latex so please explain it in simple words ;)

EDIT: Is there a way to change the ii page counts in the big form I or II?

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

TOC - page count

Post by Stefan Kottwitz »

Hi Dpoly,

welcome to the board!
Dpoly wrote:I have tested the function:

Code: Select all

\setcounter{page}{2}
You could try inserting this TeX code at the beginning of your document body, i.e. after the preamble:

Code: Select all

\addtocontents{toc}{\protect\refstepcounter{page}}
Alternatively

Code: Select all

\addtocontents{toc}{\setcounter{page}{2}}
Dpoly wrote:Is there a way to change the ii page counts in the big form I or II?
This can be done by

Code: Select all

\pagenumbering{Roman}
Stefan
LaTeX.org admin
Dpoly
Posts: 2
Joined: Mon Dec 31, 2012 5:11 pm

TOC - page count

Post by Dpoly »

Hi Stefan_K

thanks for the good answer,
but with the code:

Code: Select all

\pagenumbering{Roman}
I can't change the small letters into big letters (aim: ii --> II)

the protect code worked fine, thanks :D

Dpoly
Post Reply