[texhax] Partially multicolumn TOC

Lars Madsen daleif at imf.au.dk
Wed Apr 13 15:41:13 CEST 2011


Rasmus Villemoes wrote:
> 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).
> 

I've had good luck adding

  \vfill\strut

before \end{multicols}, then the last column is not stretched to much 
then there a not equal number of lines in the columns


-- 

/daleif


More information about the texhax mailing list