Page LayoutProblem with roman numbering in table of contents

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
janosch
Posts: 3
Joined: Mon Mar 02, 2009 9:33 pm

Problem with roman numbering in table of contents

Post by janosch »

Hello everyone,

I have to hand in my masters thesis next Tuesday and so far, using Latex has worked fine...However, I do have a problem with my table of contents, concerning the roman numbering used in the attachments (Section: Anlagen)

All the pages listed are perfectly aligned, except the roman numbers XXX and XLVIII (see below)

So far I couldn't find a solution for the problems in any of the handbooks and guides I used.

If anyone knows how to solve this issue (and could tell me before next Tuesday :-)) I'd be really grateful

Tim
Attachments
Picture 1.png
Picture 1.png (48.76 KiB) Viewed 8945 times

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with roman numbering in table of contents

Post by localghost »

Search the forum for the tocloft package. There already exists a solution for this issue.


Best regards and welcome to the board
Thorsten¹
janosch
Posts: 3
Joined: Mon Mar 02, 2009 9:33 pm

Problem with roman numbering in table of contents

Post by janosch »

Hello again!

first of all, thanks for the quick advice regarding the tocloft package. However, I still can't solve the issue because I'm not sure which command exactly I should use to fix the problem.

Maybe you guys could help me? I posted the source code of my toc below (The section highlighted in font color blue is the one causing the problems)

Thanks again for your help and time!

Tim

\pagebreak

\pagenumbering {Roman}
\section*{Anlagen}

\addcontentsline{toc}{section}{Anlagen}
\addcontentsline{toc}{subsection}{Fragebogen}

\begin{figure}[H]
\centering
\includegraphics[height=16cm, width=12cm]{Cover}
\label{fig:Cover}
\end{figure}

\newpage
\begin{centering}
\includepdf[pages=2-29, scale=0.9, pagecommand={\thispagestyle{plain}}]{fragebogen_cut}
\end{centering}

\addcontentsline{toc}{subsection}{SPSS Output}

\begin{centering}
\includepdf[pages=1-18, scale=0.9, pagecommand={\thispagestyle{plain}}]{SPSSOutputinpages}
\end{centering}

\addcontentsline{toc}{subsection}{SPSS Syntax}

\begin{centering}
\includepdf[pages=1-10, scale=0.9, pagecommand={\thispagestyle{plain}}]{Syntaxneu}
\end{centering}

\newpage
\pagestyle {plain}
\addcontentsline{toc}{section}{Literaturverzeichnis}
\bibliography{Master}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with roman numbering in table of contents

Post by localghost »

The tocloft manual describes very well which command to use.

Code: Select all

\cftsetpnumwidth{2em}
This line goes into the preamble.
janosch
Posts: 3
Joined: Mon Mar 02, 2009 9:33 pm

Re: Problem with roman numbering in table of contents

Post by janosch »

AWESOME!!!!!

This has been most helpful! Thank you very much!

All the best

TIm
Post Reply