[texhax] Partially multicolumn TOC

Rasmus Villemoes burner+usenet at imf.au.dk
Wed Apr 13 01:30:49 CEST 2011


William Adams <will.adams at frycomm.com> writes:

> Brute force way should be to place
>
> \addtocontents{toc}{\begin{multicols}{2}} 
>
> and 
>
> \addtocontents{toc}{\end{multicols}} 
>
> at appropriate points in your document.

Earlier, I have used exactly this, and it works very well. Note that
\begin and \end need to be \protect'ed:

\addtocontents{toc}{\protect\begin{multicols}{2}}
\addtocontents{toc}{\protect\end{multicols}}

I don't know what happens if there's an odd number of sections, or
some of the section titles take up more than one line. It may be
necessary to do other \addtocontents stuff to make it Just Right(tm).

-- 
Rasmus Villemoes
<http://rasmusvillemoes.dk/>



More information about the texhax mailing list