Am 25.05.2011 um 00:18 schrieb Mathieu DUPONT:
Hi,
Is there a way to have, in the table of contents, the titles (of chapters, sections, subsections, etc.) with a different interline spacing than the rest of the TOC ? My TOC interline spacing is set at 1.5 (4.2ex), but I would like to have the long titles on multiples lines being only single interline spaced (2.8ex). Is there something I could add in the \setuplist[chapter] command ?
Thanks for any hint !
Something like this? \setuplist[chapter][ label=yes, alternative=c,style={\switchtobodyfont[10pt]\bf\setuplocalinterlinespace[line=4.2ex]}, before={\blank[line]},after={\blank[halfline]} ] \setuplist[section,subsection][ label=yes, alternative=c,style={\switchtobodyfont[10pt]\setuplocalinterlinespace[line=2.8ex]}, before={\blank[line]},after={\blank[halfline]} ] \starttext \completecontent \startbodymatter \chapter{THIS VERY VERY VERY VERY VERY VERY VERY VERY LONG TITLE\\SHOULD BE BOLD INTERLINE-SPACED (line=4.2ex)} \section{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)} \subsection{THIS VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)} \stopbodymatter \stoptext Steffen