I would like to make table of contents in Tocstyle (standard package). Here is my code.
\documentclass[fontsize=12pt]{scrreprt}
\usepackage{tocstyle}
\usetocstyle{standard}
\addtokomafont{disposition}{\rmfamily}
\usepackage{titlesec}
\usepackage{setspace}
\usepackage{tocloft}
\renewcommand{\thechapter}{\Roman{chapter}}
\renewcommand \thesection{\arabic{chapter}.\arabic{section}}
\renewcommand \thesubsection{\arabic{chapter}.\arabic{section}.\arabic{subsection}}
\titleformat{\chapter}[display] {\singlespacing\rmfamily\fontsize{16pt}{19pt}\bfseries}
{\MakeUppercase{\chaptertitlename\ \thechapter}\filcenter}{10pt}{\centering\uppercase}
{\fontsize{14pt}{16pt}\filcenter}
\begin{document}
\tableofcontents
\newpage
\chapter{Test}
\section{Test}
\chapter{Test}
\section{Test}
\chapter{Test}
\section{Test}
\end{document}
and I cannot use the following code with Tocstyle.
\renewcommand{\cftchapfont}{\bfseries\uppercase}
I would like to make a title of contents with all capital letters like "TEST".
Best Answer
You can define an
uppercase
style, similar to the definitions used by standard, but including\MakeUppercase
(\uppercase
in casehyperref
is loaded):By the way,using
titlesec
with KOMA classes might not be the best option; see Incompatibilities between KOMA-Script and titlesec.I know that perhaps you are dealing with a Faculty requirement for your thesis, but having titles and ToC entries in upper case is not the best typographical choice; at this respect, the KOMA documentation says (referring to headers, but the same can be applied to other elements):