From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68778 Path: news.gmane.org!not-for-mail From: Mathieu DUPONT Newsgroups: gmane.comp.tex.context Subject: Re: TOC : Chapter title under its number (separate lines) Date: Fri, 27 May 2011 09:33:53 -0400 Message-ID: References: , <8B201B00-D1EE-45E0-855D-8E76D3F88C50@googlemail.com>, <20110526151354.GB68215@iram-hb-003386.extra.cea.fr>, <4D960EB6-820F-413E-B2B3-B1CB53CA59EE@googlemail.com>, <20110526164846.GC68215@iram-hb-003386.extra.cea.fr>, <46593206-7C30-4DB8-AD80-FA6BE32CFC7F@googlemail.com>, <20110527091426.GB17312@iram-ha-003840.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0615368620==" X-Trace: dough.gmane.org 1306503265 10635 80.91.229.12 (27 May 2011 13:34:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 27 May 2011 13:34:25 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Fri May 27 15:34:19 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 1QPxBC-0002Ot-Vu for gctc-ntg-context-518@m.gmane.org; Fri, 27 May 2011 15:34:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2CB6ECAD8A; Fri, 27 May 2011 15:34:18 +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 L8vIhL+zxC6C; Fri, 27 May 2011 15:34:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0451DCAD75; Fri, 27 May 2011 15:34:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E0BF2CAD75 for ; Fri, 27 May 2011 15:34:12 +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 1RnymZovredE for ; Fri, 27 May 2011 15:34:01 +0200 (CEST) Original-Received: from filter3-nij.mf.surf.net (filter3-nij.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 089DBCAD2F for ; Fri, 27 May 2011 15:34:01 +0200 (CEST) Original-Received: from col0-omc2-s11.col0.hotmail.com (col0-omc2-s11.col0.hotmail.com [65.55.34.85]) by filter3-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4RDXwiM005352 for ; Fri, 27 May 2011 15:33:59 +0200 Original-Received: from COL107-W10 ([65.55.34.72]) by col0-omc2-s11.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 27 May 2011 06:33:53 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal In-Reply-To: <20110527091426.GB17312@iram-ha-003840.extra.cea.fr> X-OriginalArrivalTime: 27 May 2011 13:33:53.0902 (UTC) FILETIME=[B8CA58E0:01CC1C72] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.85; 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: 0dEMBxXRf - 5ef61070ea86 - 20110527 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:68778 Archived-At: --===============0615368620== Content-Type: multipart/alternative; boundary="_f23b56ba-c308-4bba-a88f-206276df992d_" --_f23b56ba-c308-4bba-a88f-206276df992d_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable As for the interaction patching=2C in the following example I can't figure = out how to have=2C for the chapter lines=2C only "CHAPTER 1" being the inte= raction and not "the title" + "the dots line" + "the page number"=2C as it = is the case with this code.The example is minimal=2C but I left everything = I am afraid could be dropped by a solution. Thanks for help ! \setupinteraction[state=3Dstart] \setuplabeltext[chapter=3DCHAPITRE~] \setupcombinedlist[content][ level=3D3=2C alternative=3Dc=2C ] \unprotect\d= efine[3]\ChapterList{\vbox{ \setuplocalinterlinespace[line=3D2.8ex] \listpa= rameter\c!before \leftskip\listparameter\c!margin \noindent\currentlistsymb= ol\crlf#2\enspace\listdots\enspace#3 \par \listparameter\c!after \setuploca= linterlinespace[line=3D4.2ex] }}\protect \setuplist[chapter][ label=3Dyes=2C alternative=3Dvertical=2C command=3D\Ch= apterList=2C interaction=3Dall=2C ] \starttext \startfrontmatter\placecontent\stopfrontmatter \startbodymatter\chapter{CHAPTER}\section{SECTION}\subsection{SUBSECTION}\s= topbodymatter \stoptext=20 Mathieu > Date: Fri=2C 27 May 2011 11:14:26 +0200 > From: alan.braslau@cea.fr > To: schuster.wolfgang@googlemail.com > CC: ntg-context@ntg.nl > Subject: Re: [NTG-context] TOC : Chapter title under its number (separate= lines) >=20 > On Thu=2C May 26=2C 2011 at 08:16:21PM +0200=2C Wolfgang Schuster wrote: > >=20 > > Am 26.05.2011 um 18:48 schrieb Alan Braslau: > >=20 > > > \setuplist[chapter][label=3Dyes=2Calternative=3Dvertical=2Ccommand=3D= \ChapterList=2Cinteraction=3Dall] > > >=20 > > > Almost works. Almost in that all lines get indented by one level=2C > > > and then the page number (and the title if it is long and multi-line) > > > stick(s) out by this much on the right. > > >=20 > > > The manual is a bit cryptic concerning horizontal and vertical: > > > "As an alternative for none=2C we can use horizontal and vertical. > > > Both commands have their spacing tuned for typesetting lists in > > > for instance menus." > >=20 > > I don=92t read the manual very often=2C so i missed this. >=20 > Before asking for help=2C I always > 1) experiment > 2) look in the manual(s) > 3) search the mailing list > 4) consult the wiki > 5) try to understand the sources > I'm sure that you start with the last step. >=20 > >=20 > > There are two ways to have a interactive list: > >=20 > > 1. Patch the command alternative > >=20 > > 2. Introduce a new alternative which has interactive support > > plus a few more missing features (e.g. label support) > >=20 > > Wolfgang >=20 > In fact=2C > \setuplist [chapter] [label=3Dyes] > should work "out of the box". >=20 > Currently=2C one must set: > \setuplabeltext [chapter=3DChapter ] % with trailing space=3B blank by de= fault > \setuplabeltext [appendix=3DAppendix ] % with trailing space=3B blank by= default > (This *should* be included in the language files=2C not redefined by the = user. Indeed=2C "\setuphead [chapter] [label=3Dno]" could be the default=2C= not blanking out the labeltext.) > Secondly=2C the spacing of the TOC is all wrong. This should not need pat= ching to yield an acceptable result. >=20 > Alan > _________________________________________________________________________= __________ > If your question is of interest to others as well=2C please add an entry = to the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ = --_f23b56ba-c308-4bba-a88f-206276df992d_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

As for the interaction patching=2C in the following example = I can't figure out how to have=2C for the chapter lines=2C only "CHAPTER 1"= being the interaction and not "the title" + "the dots line" + "the page nu= mber"=2C as it is the case with this code.
The example is minimal=2C bu= t I left everything I am afraid could be dropped by a solution.
<= br>
Thanks for help !


\setupinteraction[state=3Dstart]

\setuplabeltext= [chapter=3DCHAPITRE~]

\setupcombinedlist[content][=
level=3D3=2C
alternative=3Dc=2C
]
\unprotect
\define[= 3]\ChapterList{\vbox{
\setuplocalinterlinespace[line=3D2.8ex]
\listparamete= r\c!before
\leftskip\listparameter\c!margin
\noindent\currentlistsymbol\crl= f#2\enspace\listdots\enspace#3
\par
\listparameter\c!after
\setuplocalinter= linespace[line=3D4.2ex]
}}
\protect

\set= uplist[chapter][
label=3Dyes=2C
alternative=3Dvertical=2C
command=3D\Chapte= rList=2C
interaction=3Dall=2C
]
\starttext

<= div>
\startfrontmatter
\placecontent
\stopfrontmatt= er

\startbodymatter
\chapter{CHAPT= ER}
\section{SECTION}
\subsection{SUBSECTION}
\stopbodymatter

\stoptext =3B

<= /div>


Mathieu




>=3B D= ate: Fri=2C 27 May 2011 11:14:26 +0200
>=3B From: alan.braslau@cea.fr<= br>>=3B To: schuster.wolfgang@googlemail.com
>=3B CC: ntg-context@nt= g.nl
>=3B Subject: Re: [NTG-context] TOC : Chapter title under its num= ber (separate lines)
>=3B
>=3B On Thu=2C May 26=2C 2011 at 08:16= :21PM +0200=2C Wolfgang Schuster wrote:
>=3B >=3B
>=3B >=3B = Am 26.05.2011 um 18:48 schrieb Alan Braslau:
>=3B >=3B
>=3B &g= t=3B >=3B \setuplist[chapter][label=3Dyes=2Calternative=3Dvertical=2Ccomm= and=3D\ChapterList=2Cinteraction=3Dall]
>=3B >=3B >=3B
>=3B = >=3B >=3B Almost works. Almost in that all lines get indented by one le= vel=2C
>=3B >=3B >=3B and then the page number (and the title if i= t is long and multi-line)
>=3B >=3B >=3B stick(s) out by this much= on the right.
>=3B >=3B >=3B
>=3B >=3B >=3B The manual = is a bit cryptic concerning horizontal and vertical:
>=3B >=3B >= =3B "As an alternative for none=2C we can use horizontal and vertical.
= >=3B >=3B >=3B Both commands have their spacing tuned for typesettin= g lists in
>=3B >=3B >=3B for instance menus."
>=3B >=3B <= br>>=3B >=3B I don=92t read the manual very often=2C so i missed this.<= br>>=3B
>=3B Before asking for help=2C I always
>=3B 1) experi= ment
>=3B 2) look in the manual(s)
>=3B 3) search the mailing lis= t
>=3B 4) consult the wiki
>=3B 5) try to understand the sources<= br>>=3B I'm sure that you start with the last step.
>=3B
>=3B = >=3B
>=3B >=3B There are two ways to have a interactive list:
= >=3B >=3B
>=3B >=3B 1. Patch the command alternative
>=3B = >=3B
>=3B >=3B 2. Introduce a new alternative which has interacti= ve support
>=3B >=3B plus a few more missing features (e.g. label= support)
>=3B >=3B
>=3B >=3B Wolfgang
>=3B
>=3B = In fact=2C
>=3B \setuplist [chapter] [label=3Dyes]
>=3B should wo= rk "out of the box".
>=3B
>=3B Currently=2C one must set:
>= =3B \setuplabeltext [chapter=3DChapter ] % with trailing space=3B blank by = default
>=3B \setuplabeltext [appendix=3DAppendix ] % with trailing s= pace=3B blank by default
>=3B (This *should* be included in the langua= ge files=2C not redefined by the user. Indeed=2C "\setuphead [chapter] [lab= el=3Dno]" could be the default=2C not blanking out the labeltext.)
>= =3B Secondly=2C the spacing of the TOC is all wrong. This should not need p= atching to yield an acceptable result.
>=3B
>=3B Alan
>=3B = ___________________________________________________________________________= ________
>=3B If your question is of interest to others as well=2C ple= ase add an entry to the Wiki!
>=3B
>=3B maillist : ntg-context@n= tg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
>=3B webpage := http://www.pragma-ade.nl / http://tex.aanhet.net
>=3B archive : http= ://foundry.supelec.fr/projects/contextrev/
>=3B wiki : http://cont= extgarden.net
>=3B ___________________________________________________= ________________________________
= --_f23b56ba-c308-4bba-a88f-206276df992d_-- --===============0615368620== 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 ___________________________________________________________________________________ --===============0615368620==--