ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TOC : Changing the interline spacing of titles, for long titles on multiple lines
@ 2011-05-24 22:18 Mathieu DUPONT
  2011-05-25  8:04 ` Steffen Wolfrum
  2011-05-25 15:36 ` Wolfgang Schuster
  0 siblings, 2 replies; 10+ messages in thread
From: Mathieu DUPONT @ 2011-05-24 22:18 UTC (permalink / raw)
  To: ConTeXt


[-- Attachment #1.1: Type: text/plain, Size: 1150 bytes --]



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 !

\setupinterlinespace[line=4.2ex]   %  1.5 interline
\setuplabeltext[chapter=CHAPITRE~]\define[3]\ChapterList{	\blank\par\noindent\currentlistsymbol\crlf	#2\enspace\listdots\enspace	#3\par\blank[0.1cm]}\setupcombinedlist[content][level=3,alternative=c]\setuplist[chapter][	label=yes,	alternative=command,	command=\ChapterList,	]
\starttext
\completecontent
\startbodymatter\chapter{THIS VERY VERY VERY VERY VERY VERY VERY VERY LONG TITLE SHOULD BE SINGLE INTERLINE-SPACED (line=2.8ex)}\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 


Mathieu

 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 2373 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2011-05-25 18:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 22:18 TOC : Changing the interline spacing of titles, for long titles on multiple lines Mathieu DUPONT
2011-05-25  8:04 ` Steffen Wolfrum
2011-05-25 15:28   ` Mathieu DUPONT
2011-05-25 15:36 ` Wolfgang Schuster
2011-05-25 15:42   ` Mathieu DUPONT
2011-05-25 15:49     ` Wolfgang Schuster
2011-05-25 16:02       ` Mathieu DUPONT
2011-05-25 16:12         ` Wolfgang Schuster
2011-05-25 17:48           ` Mathieu DUPONT
2011-05-25 18:45             ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).