I have document like this:
\documentclass{book}
\renewcommand\thechapter{\Roman{chapter}}
\begin{document}
\chapter{Some title}
\chapter{Some other title}
\chapter{One more title}
\tableofcontents
\end{document}
It produces table of contents like:
What i need is no space between chapter number ant its caption, like:
tocloft allows to use \cftchapnumwidth
command , but it is "static", I want chapnumwidth to be adjusted to each number.
Thank you
Best Answer
Even
tocloft
still uses the traditional setting of the ToC entry numbers inside a box (of width\cftZnumwidth
, whereZ
is the sectional unit). But, we can patch\l@chapter
to momentarily adjust\numberline
- the macro causing the problems. The patching is supplied byetoolbox
.Below I've done so, even though the readability of the ToC now completely suffers from it:
For a fixed space after the chapter numeral, adjust
\cftchappresnum
to something like~
.