[texhax] Re : Merging Chapter Number and Title with tocloft
Alessandro Ceschini
alescesc1986 at yahoo.it
Sun Feb 9 11:22:42 CET 2014
> A simple minded approach:
> \documentclass{book}
> %\usepackage{hyperref}
> \def\mynumberline #1{#1 }
> \renewcommand\thechapter{\Roman{chapter}}
>
> \begin{document}
> \addtocontents{toc}{\let\protect\numberline\protect\mynumberline}
> \tableofcontents
>
> \chapter{One}
>
> \chapter{Two}
>
> \setcounter{chapter}{14}
> \chapter{Fifteen}
>
> \setcounter{chapter}{17}
> \chapter{Eightteen}
> \end{document}
>
>
> Regards
> Jean-Francois
Dear Jean-François
Thank you so much for your very simple-minded approach! However, the dot
following the Roman numbers has disappeared, and I devised this to
restore it:
\def\mynumberline #1{#1.\ }
What do you think about it? Do you know of a more elegant or proper
workaround? Just curious.
Greetings
--
/Alessandro Ceschini/
More information about the texhax
mailing list