ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* TOC : margin size doesn't reset if next section is a chapter
@ 2011-05-25 18:21 Mathieu DUPONT
  2011-05-25 18:51 ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Mathieu DUPONT @ 2011-05-25 18:21 UTC (permalink / raw)
  To: ConTeXt


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



In the following example, I set the margin for subsections to 1.25cm, in order for the subsection number to be aligned with the titles of sections.If the next "section" after a subsection is a section or another subsection, there is no problem.But if (as shown here) the next "section" (after a subsection) is a chapter, it becomes shifted to the right (its margin is 1.25cm).Is there something I could add to my command \ChapterList to "reset" the margin to 0cm ?Thanks !

\setuplabeltext[chapter=CHAPTER~]
\define[3]\ChapterList{	\blank	\par\noindent\currentlistsymbol\crlf	#2\enspace\listdots\enspace	#3\par	}\setuplist[chapter][	margin=0cm,        % this line doesn't do anything	label=yes,	alternative=command,	command=\ChapterList,	]\setuplist[section][margin=0cm,width=1.25cm]\setuplist[subsection][margin=1.25cm,width=1.25cm]
\starttext
\completecontent
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}
\stoptext 


Mathieu

 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 2484 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] 6+ messages in thread

end of thread, other threads:[~2011-05-26  8:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-25 18:21 TOC : margin size doesn't reset if next section is a chapter Mathieu DUPONT
2011-05-25 18:51 ` Wolfgang Schuster
2011-05-25 20:08   ` Mathieu DUPONT
2011-05-26  4:23     ` Wolfgang Schuster
2011-05-26  7:36       ` Hans Hagen
2011-05-26  8:59       ` Mathieu DUPONT

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).