ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mathieu DUPONT <mathieudupont@hotmail.com>
To: ConTeXt <ntg-context@ntg.nl>
Subject: Re: TOC : margin size doesn't reset if next section is a chapter
Date: Wed, 25 May 2011 16:08:22 -0400	[thread overview]
Message-ID: <COL107-W2604917E4680249D61E764B2740@phx.gbl> (raw)
In-Reply-To: <1978358A-0E79-43BF-B0B7-65B576AB8A94@googlemail.com>


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



It bugs on the \leftskip command.Any idea why ?If I omit \leftskip, the problem doesn't get solved.

<to be read again> 
                   \emptyargin 
\ChapterList ... \leftskip \listparameter {margin}
                                                   \noindent \currentlistsym...
\processlistofstructure ...\fi \fi \fi \endcsname 
                                                  \dostoptagged \processlist...
l.11 {}
       
\doplacestructurelist ...s = "#4", order = "#5" }}
                                                  \dostoptagged 
\doplacecombinedlist ...edlistparameter \c!order }
                                                  \doendoflist \stoplistrefe...
...
l.49 
     
? 


Mathieu



From: schuster.wolfgang@googlemail.com
Date: Wed, 25 May 2011 20:51:14 +0200
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] TOC : margin size doesn't reset if next section	is a chapter




Am 25.05.2011 um 20:21 schrieb Mathieu DUPONT: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	}
\define[3]\ChapterList  {\par   \listparameter{before}%   \leftskip\listparameter{margin}%   \noindent#2\enspace\listdots\enspace#3\par   \listparameter{after}}
\setuplist[chapter][	margin=0cm,        % this line doesn't do anything	label=yes,	alternative=command,	command=\ChapterList,	]
\setuplist  [chapter]  [alternative=command,   command=\ChapterList,   label=yes,   before=\blank,   margin=0pt]
Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________ 		 	   		  

[-- Attachment #1.2: Type: text/html, Size: 7034 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
___________________________________________________________________________________

  reply	other threads:[~2011-05-25 20:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-25 18:21 Mathieu DUPONT
2011-05-25 18:51 ` Wolfgang Schuster
2011-05-25 20:08   ` Mathieu DUPONT [this message]
2011-05-26  4:23     ` Wolfgang Schuster
2011-05-26  7:36       ` Hans Hagen
2011-05-26  8:59       ` Mathieu DUPONT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=COL107-W2604917E4680249D61E764B2740@phx.gbl \
    --to=mathieudupont@hotmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).