wannesm/adsphd

After Windows update, problems with template

Opened this issue · 0 comments

After a Windows update, my table of contents and list of figures&tables suddenly had a completely different layout. The tocloft package was suddenly not functioning properly anymore. I changed the package I use to titletoc.
More specifically I changed the following lines in the adsphd.cls:
\usepackage[titles]{tocloft}
\renewcommand{\cftchapfont}{\sffamily\bfseries\selectfont}
\renewcommand{\cftchappagefont}{\sffamily\bfseries\selectfont}

to

\usepackage{titletoc}

\titlecontents{chapter}[0pt]{\protect\addvspace{10\p@}\sffamily\bfseries\selectfont}
{\thecontentslabel \hspace{10pt}}
{\hspace{0.0em}}
{ \hfill\contentspage}[\vskip 0pt]