I am aware that tocstyle
may have compatibility problems, but it provides, with a few commands, all the predefined styles I may want. On the other hand, I might use titletoc
, but it seems less convenient (lots of lines of code to do something I could do with 2 lines with tocstyle
). However, tocstyle
seems to have some incompatibility with the mwcls
classes -- the document compiles (i.e., the pdf looks ok), but there are warnings:
Missing number, treated as zero. \begin{document}
Undefined control sequence. \begin{document}
MWE:
\documentclass{mwbk}
\usepackage{blindtext}
\usepackage[tocgraduated]{tocstyle}
\usetocstyle{nopagecolumn}
\begin{document}
\tableofcontents
\frontmatter
\chapter{title}
\chapter{title}
\mainmatter
\chapter{This is a huge chapter name just for testing. This is a huge chapter name just for testing. This is a huge chapter name just for testing. }
\chapter{This is a huge chapter name just for testing. This is a huge chapter name just for testing. This is a huge chapter name just for testing with Lualatex}
\chapter{title}
\blinddocument
\end{document}