From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68730 Path: news.gmane.org!not-for-mail From: Mathieu DUPONT Newsgroups: gmane.comp.tex.context Subject: Re: TOC : margin size doesn't reset if next section is a chapter Date: Wed, 25 May 2011 16:08:22 -0400 Message-ID: References: , <1978358A-0E79-43BF-B0B7-65B576AB8A94@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1141834882==" X-Trace: dough.gmane.org 1306354134 2238 80.91.229.12 (25 May 2011 20:08:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 May 2011 20:08:54 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Wed May 25 22:08:50 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 1QPKNu-0001cl-B7 for gctc-ntg-context-518@m.gmane.org; Wed, 25 May 2011 22:08:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5BBDACAD64; Wed, 25 May 2011 22:08:49 +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 KbIN+CvWgEKx; Wed, 25 May 2011 22:08:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7AC37CAD5F; Wed, 25 May 2011 22:08:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E9D78CAD5F for ; Wed, 25 May 2011 22:08:44 +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 c1LDhjqKkBhQ for ; Wed, 25 May 2011 22:08:30 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 248CACAD59 for ; Wed, 25 May 2011 22:08:30 +0200 (CEST) Original-Received: from col0-omc2-s12.col0.hotmail.com (col0-omc2-s12.col0.hotmail.com [65.55.34.86]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4PK8SOR010942 for ; Wed, 25 May 2011 22:08:29 +0200 Original-Received: from COL107-W26 ([65.55.34.72]) by col0-omc2-s12.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 25 May 2011 13:08:23 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal In-Reply-To: <1978358A-0E79-43BF-B0B7-65B576AB8A94@googlemail.com> X-OriginalArrivalTime: 25 May 2011 20:08:23.0467 (UTC) FILETIME=[801FD7B0:01CC1B17] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.86; country=US; region=WA; city=Redmond; postalcode=98052; latitude=47.6801; longitude=-122.1206; metrocode=819; areacode=425; http://maps.google.com/maps?q=47.6801,-122.1206&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0cELU8sxe - d97b0c0e03a8 - 20110525 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 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:68730 Archived-At: --===============1141834882== Content-Type: multipart/alternative; boundary="_c2d3dc0e-a19a-4273-9278-2d982b9419af_" --_c2d3dc0e-a19a-4273-9278-2d982b9419af_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It bugs on the \leftskip command.Any idea why ?If I omit \leftskip=2C the p= roblem doesn't get solved. =20 \emptyargin=20 \ChapterList ... \leftskip \listparameter {margin} \noindent \currentlistsy= m... \processlistofstructure ...\fi \fi \fi \endcsname=20 \dostoptagged \processlis= t... l.11 {} =20 \doplacestructurelist ...s =3D "#4"=2C order =3D "#5" }} \dostoptagged=20 \doplacecombinedlist ...edlistparameter \c!order } \doendoflist \stoplistref= e... ... l.49=20 =20 ?=20 Mathieu From: schuster.wolfgang@googlemail.com Date: Wed=2C 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=2C I= set the margin for subsections to 1.25cm=2C in order for the subsection nu= mber to be aligned with the titles of sections.If the next "section" after = a subsection is a section or another subsection=2C there is no problem.But = if (as shown here) the next "section" (after a subsection) is a chapter=2C = 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=3DCHAPTER~] \define[3]\ChapterList{ \blank \par\noindent\currentlistsymbol\crlf #2\ensp= ace\listdots\enspace #3\par } \define[3]\ChapterList {\par \listparameter{before}% \leftskip\listpar= ameter{margin}% \noindent#2\enspace\listdots\enspace#3\par \listparamet= er{after}} \setuplist[chapter][ margin=3D0cm=2C % this line doesn't do anything= label=3Dyes=2C alternative=3Dcommand=2C command=3D\ChapterList=2C ] \setuplist [chapter] [alternative=3Dcommand=2C command=3D\ChapterList= =2C label=3Dyes=2C before=3D\blank=2C margin=3D0pt] Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well=2C please add an entry to= the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ = --_c2d3dc0e-a19a-4273-9278-2d982b9419af_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

It bugs on the \leftskip command.
Any idea why ?
If I omit =3B\leftskip=2C the problem doesn't get solved.
=

<=3Bto be read again>=3B =3B

 = =3B =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B =  =3B \emptyargin =3B

\Chapte= rList ... \leftskip \listparameter {margin}

 = =3B =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B =  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &nb= sp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  = =3B \noindent \currentlistsym...

\proces= slistofstructure ...\fi \fi \fi \endcsname =3B

 = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &n= bsp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B \dost= optagged \processlist...

l.11 {}=

 =3B  =3B  =3B  =3B

\doplac= estructurelist ...s =3D "#4"=2C order =3D "#5" }}

 = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &n= bsp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B \dost= optagged =3B

\doplac= ecombinedlist ...edlistparameter \c!order }

 = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B &n= bsp=3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B \doen= doflist \stoplistrefe...

...

l.49&nb= sp=3B

 =3B  =3B  =3B

? = =3B




Mathieu




From: schuster.wolfgang@googlemail.com
Date= : Wed=2C 25 May 2011 20:51:14 +0200
To: ntg-context@ntg.nl
Subject: R= e: [NTG-context] TOC : margin size doesn't reset if next section is a chapt= er


Am 25= .05.2011 um 20:21 schrieb Mathieu DUPONT:


In the following example=2C I set the margin for = subsections to 1.25cm=2C in order for the subsection number to be aligned w= ith the titles of sections.
If the next "section" after a subsection is= a section or another subsection=2C there is no problem.
But if (= as shown here) the next "section" (after a subsection) is a chapter=2C it b= ecomes shifted to the right (its margin is 1.25cm).
Is there some= thing I could add to my command =3B\ChapterList to "reset" the margin t= o 0cm ?
Thanks !


\se= tuplabeltext[chapter=3DCHAPTER~]

\define[3]\Chapte= rList{
\blank
\par\noindent\currentlistsymbol\crlf
#2\enspace\list= dots\enspace
#3\par
}

=
\define[3]\ChapterList
 =3B =3B{\par
 =3B =3B \listparameter{before}%
 =3B =3B \lefts= kip\listparameter{margin}%
 =3B =3B \noindent#2\enspace\l= istdots\enspace#3\par
 =3B =3B =3B\listparameter{afte= r}}

\setuplist[c= hapter][
margin=3D0cm=2C  =3B  =3B  =3B  =3B% this line = doesn't do anything
label=3Dyes=2C
alternative=3Dcommand=2C
comman= d=3D\ChapterList=2C
]

\setuplist
 =3B =3B[chapter]
 =3B = =3B[alternative=3Dcommand=2C
 =3B =3B command=3D\ChapterL= ist=2C
 =3B =3B label=3Dyes=2C
 =3B =3B= before=3D\blank=2C
 =3B =3B margin=3D0pt]

=
Wolfgang


_______________________________= ____________________________________________________ If your question is of interest to others as well=2C please add an entry to= the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________ = --_c2d3dc0e-a19a-4273-9278-2d982b9419af_-- --===============1141834882== 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 ___________________________________________________________________________________ --===============1141834882==--