I would like to have two-columned table of contents:
\begin{multicols}{2}
\tableofcontents
\end{multicols}
But it looks wierd if I have a title included in two columns – second column is above the title. So I would like to have something like that:
\section*{My content}
\begin{multicols}{2}
% table of contents without title
\tableofcontents
\end{multicols}
Is there any way to do this?
Best Answer
The
article
document class defined\tableofcontents
asThis prints both the
\contentsname
as a\section*
and marks the headers, after which it typesets the actual ToC (via\@starttoc{toc}
). If you forego the header adjustments, merely renewing the\tableofcontents
command towould suffice. This typesets a
\section*
with the contents name provided as an optional argument (default is\contentsname
, which isContents
inarticle
). Afterwards, if starts a two-columnmulticol
environment and inserts the ToC. Here's a minimal example: