[texhax] Partially multicolumn TOC

William Adams will.adams at frycomm.com
Tue Apr 12 15:12:05 CEST 2011

On Apr 12, 2011, at 4:29 AM, Aleksandar Zec wrote:

> Is there a simple way to produce the effect like this in a table of contents:
>
> chapter 1 ................................ ##
> section 1 ....... ##  |  section 6 ....... ##
> section 2 ....... ##  |  section 7 ....... ##
> section 3 ....... ##  |  section 8 ....... ##
> section 4 ....... ##  |  section 9 ....... ##
> section 5 ....... ##  |  section 10 ...... ##
>
> chapter 2 .................................##
> section 11 ...... ##  |  section 14 ...... ##
> section 12 ...... ##  |  section 15 ...... ##
> section 13 ...... ##  |  section 16 ...... ##
>
> I.e. only sections go to \begin{multicols}{2}...\end{multicols},
> everything other stays intact? Ideally, this should be pagebreak-safe.
>
> Thank you very much in advance.

Brute force way should be to place

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

and

\addtocontents{toc}{\end{multicols}}

at appropriate points in your document.

If you're willing to keep track, you could add the code to \chapter

William

--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.



More information about the texhax mailing list