2

I use the article class.

I want a ToC and pages with roman number, so I use the following :

\renewcommand{\thesection}{\Roman{section}} 

But the ToC layout is horrible (while page title are great) :

Any help, please?

For the record, I'm using latex since two month and I did great until this problem, which i can't solve by myself. I did a research over the web but I can't find anything about this.

Sub
  • 23

1 Answers1

2

Use tocloft as suggested by Torbjorn. Here is an example:

\documentclass{article}
\usepackage{tocloft}
\setlength{\cftsecnumwidth}{3em}   %% adjust as you wish
\cftsetindents{section}{3em}{1.5em}   %% adjust as you wish
\cftsetindents{subsection}{4.5em}{2.5em}   %% adjust as you wish
\cftsetindents{subsubsection}{7em}{3.5em}   %% adjust as you wish
\usepackage{blindtext}   %% for dummy text
\begin{document}
\renewcommand{\thesection}{\Roman{section}}
\tableofcontents
\Blinddocument
\end{document}

enter image description here