4

How can one create a full width table of contents in a two column document, independent of documentclass?

0

1 Answer 1

5

Simply use the multicol package for this. Switch between any number of columns using the multicols environment.

This solution should work for any document class as asked by you.

The Code

\documentclass{article}

\usepackage{lipsum}

\usepackage{multicol}

\begin{document}


\tableofcontents

\begin{multicols}{2}

\section{My Contents}
\lipsum

\section{More Contents}

\lipsum

\section{And More Contents}

\lipsum
\section{And More My Contents}

\lipsum
\section{And More}

\lipsum


\end{multicols}


\end{document

Output

enter image description here

1
  • What about RevTex4, which is incompatible with multicols?
    – Mr G
    Commented Jan 19, 2022 at 5:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .