In this MWE, how come my two-column table of contents gets stretched out into one column upon loading the tocloft
package? How can I prevent this?
\documentclass{scrartcl}
\usepackage{multicol}
\begin{document}
\BeforeStartingTOC[toc]{\begin{multicols}{2}}
\AfterStartingTOC[toc]{\end{multicols}}
\tableofcontents
\section{Section 1}
\subsection{Subsection 1.1}
\subsection{Subsection 1.2}
\subsection{Subsection 1.3}
\section{Section 2}
\subsection{Subsection 2.1}
\subsection{Subsection 2.2}
\subsection{Subsection 2.3}
\section{Section 3}
\subsection{Subsection 3.1}
\subsection{Subsection 3.2}
\subsection{Subsection 3.3}
\section{Section 4}
\subsection{Subsection 4.1}
\subsection{Subsection 4.2}
\subsection{Subsection 4.3}
\end{document}
tocloft
for creating lists of custom counters as done in this question? – Casimir Oct 1 '17 at 13:06tocbasic
in the manual. – Johannes_B Oct 1 '17 at 13:48\DeclareNewTOC{cases}
and added\phantomsection\addxcontentsline{cases}{usecase}{\protect\numberline{\theusecase}#1}\par}
to my custom usecase environment. Can you by any chance see what the problem is? – Casimir Oct 1 '17 at 14:22