[Tex/LaTex] Capitalize chapter* in toc with classicthesis

capitalizationclassicthesistable of contents

When adding a chapter entry in the toc, I would like to get it as the other chapters, ie capitalized… For instance, add this line

\addcontentsline{toc}{chapter}{Test}

between these two lines of ClassicThesis.tex (around line 213 in my version):

\cleardoublepage\part{Some Kind of Manual}
\include{Chapters/Chapter01}

It tried to modify classicthesis.sty without success by changing (around line 570

\newcommand\ChapS[1]{\oldchap*{#1}}%

to

\newcommand\ChapS[1]{%
  \ifpdf\oldchap*{\texorpdfstring{\spacedlowsmallcaps{#1}}{#1}}%
  \else\oldchap*{\spacedlowsmallcaps{#1}}%
  \fi%
}

Any help will be greatly appreciated… Thanks! 🙂

Best Answer

The classicthesis package uses titlesec to handle its title formatting. titlesec strongly discourages the use of starred versions of things. Instead (as outlined in the titlesec documentation) it recommends creating environments for unnumbered sections or chapters. Here's an example that solves your problem.

\documentclass[oneside,letterpaper]{scrbook}
\usepackage{classicthesis}
\usepackage{lipsum} % for dummy text
\newenvironment{unnumbered}%
{\setcounter{secnumdepth}{-1}}
{\setcounter{secnumdepth}{2}}
\begin{document}
\tableofcontents
\chapter{A  regular chapter}
\lipsum
\begin{unnumbered}
\chapter{An unnumbered chapter}
\lipsum
\end{unnumbered}
\end{document}