From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68728 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: TOC : margin size doesn't reset if next section is a chapter Date: Wed, 25 May 2011 20:51:14 +0200 Message-ID: <1978358A-0E79-43BF-B0B7-65B576AB8A94@googlemail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary="===============1654750866==" X-Trace: dough.gmane.org 1306349497 4174 80.91.229.12 (25 May 2011 18:51:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 May 2011 18:51:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 20:51:32 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QPJB2-0000GO-Ln for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2011 20:51:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE746CAD71; Wed, 25 May 2011 20:51:27 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zjsydMM6J1z8; Wed, 25 May 2011 20:51:24 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 163F8CAD59; Wed, 25 May 2011 20:51:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 84C52CAD59 for ; Wed, 25 May 2011 20:51:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id gxa2rsRn20cj for ; Wed, 25 May 2011 20:51:20 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 9D875CAD3A for ; Wed, 25 May 2011 20:51:20 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4PIpIs5003501 for ; Wed, 25 May 2011 20:51:19 +0200 Original-Received: by bwz17 with SMTP id 17so49919bwz.14 for ; Wed, 25 May 2011 11:51:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=mxWi+BSILhOOVr+209wR6/J8mQQFfBbftAcgLi6oMH0=; b=Hin5p6ysjiV5IwnbtnAeJXCWZx1bLbSuF067OB1cIVZLOwxUg3M/aq7/ZjeBQXWLJ1 VN2RdjY5AuHSfLrWuX3c40IUqCaXEabCraGmDexkJ40N/9H47LO2KjgarE8r7doKbbbY /xc/vFlXK/Dyi3wRd3einbIeMqg7DUI9sByqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=WYfd48fqKd0N3O+G+AHABuQo8RWHhl3jpsjdxt62owjzBL/SwX7NMoCSTGRSBHCWCn pJCyHgCpqKxJdOa1X7ZPq5YtheQb9CPL85N7YOttYKhVrmp+pU2zwry2jj2q8ms+jx3p ZFzVMAfwopUWunoNgt3RQEpkZOfh4QcBPicfA= Original-Received: by 10.204.47.66 with SMTP id m2mr278159bkf.146.1306349478335; Wed, 25 May 2011 11:51:18 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B29481E.dip.t-dialin.net [91.41.72.30]) by mx.google.com with ESMTPS id u15sm5399499bkf.16.2011.05.25.11.51.16 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2011 11:51:17 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08ELSPid7 - a84b962427b6 - 20110525 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:68728 Archived-At: --===============1654750866== Content-Type: multipart/alternative; boundary=Apple-Mail-28--522723464 --Apple-Mail-28--522723464 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Am 25.05.2011 um 20:21 schrieb Mathieu DUPONT: >=20 > 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 ! >=20 >=20 > \setuplabeltext[chapter=3DCHAPTER~] >=20 > \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=3D0cm, % this line doesn't do anything > label=3Dyes, > alternative=3Dcommand, > command=3D\ChapterList, > ] \setuplist [chapter] [alternative=3Dcommand, command=3D\ChapterList, label=3Dyes, before=3D\blank, margin=3D0pt] Wolfgang --Apple-Mail-28--522723464 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
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=3DC= HAPTER~]

\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
   \li= stparameter{after}}

\setuplist[chapter][
= margin=3D0cm,        % this line doesn't do = anything
label=3Dyes,
= alternative=3Dcommand,
= command=3D\ChapterList,
= ]

\setup= list
  [chapter]
  [alternative=3Dcomman= d,
   command=3D\ChapterList,
   = label=3Dyes,
   = before=3D\blank,
   = margin=3D0pt]

Wolfgang

= --Apple-Mail-28--522723464-- --===============1654750866== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1654750866==--