From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68681 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: Tue, 24 May 2011 09:33:38 -0400 Message-ID: References: , , <8B201B00-D1EE-45E0-855D-8E76D3F88C50@googlemail.com>, Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2073455263==" X-Trace: dough.gmane.org 1306244048 5407 80.91.229.12 (24 May 2011 13:34:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 24 May 2011 13:34:08 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 15:34:03 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 1QOrkI-00030Q-Sv for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2011 15:34:02 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A7FB4CAD5D; Tue, 24 May 2011 15:34:01 +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 5jMw71-lYo0q; Tue, 24 May 2011 15:33:58 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2371CAD3E; Tue, 24 May 2011 15:33:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 31713CAD3E for ; Tue, 24 May 2011 15:33:57 +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 WQ7gkiTQxOrZ for ; Tue, 24 May 2011 15:33:45 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 9E852CAD35 for ; Tue, 24 May 2011 15:33:45 +0200 (CEST) Original-Received: from col0-omc2-s14.col0.hotmail.com (col0-omc2-s14.col0.hotmail.com [65.55.34.88]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4ODXhCb009856 for ; Tue, 24 May 2011 15:33:44 +0200 Original-Received: from COL107-W50 ([65.55.34.72]) by col0-omc2-s14.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 24 May 2011 06:33:38 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal In-Reply-To: X-OriginalArrivalTime: 24 May 2011 13:33:38.0935 (UTC) FILETIME=[30A15070:01CC1A17] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.88; 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: 05ELpxHlw - 26a17b8194b6 - 20110524 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.220 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:68681 Archived-At: --===============2073455263== Content-Type: multipart/alternative; boundary="_48ff17c8-681b-41a8-850b-9d492cc54b57_" --_48ff17c8-681b-41a8-850b-9d492cc54b57_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable If now I add the line : \setupcombinedlist[content][alternative=3Dc] it doesn't add the dots to the chapter lines anymore=2Cand I can't add \setuplist[chapter][alternative=3Dc] since the "alternative" parameter is already taken by the new "command" Is there a way to add the "dots" option within my new "command"=2C or somew= here else ? Mathieu From: mathieudupont@hotmail.com To: ntg-context@ntg.nl Date: Tue=2C 24 May 2011 09:09:39 -0400 Subject: Re: [NTG-context] TOC : Chapter title under its number (separate l= ines) That was very useful !! Again=2C thank you very much Wolfgang ! Mathieu From: schuster.wolfgang@googlemail.com Date: Tue=2C 24 May 2011 13:42:41 +0200 To: ntg-context@ntg.nl Subject: Re: [NTG-context] TOC : Chapter title under its number (separate l= ines) Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:Hi=2C Is there a simple way to obtain the following result in the table of conten= t : ContentsCHAPTER 1Title of chapter 21.1 Title of s= ection 2 (the chapter title underneath its number and left aligned=2C just like ever= ything else) The following code used to do the job with MkII but it doesn't anymore with= MkIV : \setuplabeltext[chapter=3DCHAPTER~]\setuplist[chapter][label=3Dyes=2C style= =3D{\blank[0cm]}] \starttext \startfrontmatter\completecontent\stopfrontmatter \startbodymatter\chapter{Title of chapter}\section{Title of section}\stopbo= dymatter \stoptext=20 Instead=2C I get something like this (I hope it turns out readable through = the email) : Contents CHAPTER 1 Title of chapter 21.1 Titl= e of section 2 where the 2 lines of the chapter=2C together with their alignment with the = frame=2C get tossed to the right... I do get with MkIV the first example like you expect but =93style=3D{\blank= [0cm]}=94is the wrong way. Such a layout can be easily done with your own l= ist-commandfor chapter but the labeltext is tricky: \setuplabeltext[chapter=3DCHAPTER~] % \define[3]\ChapterList % no label!% {#1\crlf#2\wordright{#3}} % \define[3]\ChapterList % fixed label=2C wrong for appendices!% {\labelt= ext{chapter}#1\crlf#2\wordright{#3}} \define[3]\ChapterList {\currentlistsymbol\crlf#2\wordright{#3}} \setuplist[chapter][label=3Dyes=2Calternative=3Dcommand=2Ccommand=3D\Chapte= rList] \starttext \startfrontmatter\completecontent\stopfrontmatter \startbodymatter\chapter{Title of chapter}\section{Title of section}\stopbo= dymatter \stoptext 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 ___________________________________________________________________________= ________ =20 ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________ = --_48ff17c8-681b-41a8-850b-9d492cc54b57_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable

If now I add the line :

\setupcombinedlis= t[content][alternative=3Dc]

it doesn't add the dot= s to the chapter lines anymore=2C
and I can't add

<= /div>
\setuplist[chapter][alternative=3Dc]

sin= ce the "alternative" parameter is already taken by the new "command"
<= div>
Is there a way to add the "dots" option within my new "c= ommand"=2C or somewhere else ?



<= /font>
Mathieu





From: mathieudupont@hot= mail.com
To: ntg-context@ntg.nl
Date: Tue=2C 24 May 2011 09:09:39 -04= 00
Subject: Re: [NTG-context] TOC : Chapter title under its number (sepa= rate lines)


That was very useful !!

Again=2C thank yo= u very much Wolfgang !



=
Mathieu




From: schuster.wolfgang@googlemail.= com
Date: Tue=2C 24 May 2011 13:42:41 +0200
To: ntg-context@ntg.nlSubject: Re: [NTG-context] TOC : Chapter title under its number (separate = lines)


Am 24.05.2011 um 00:59 schrieb Mathieu DUPONT:

H= i=2C

Is there a simple way to obtain the following resul= t in the table of content :

Contents
CHA= PTER 1
Title of chapter  =3B  =3B  =3B  =3B  = =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B2
1.1  =3B  =3BTitle of section  =3B  =3B  =3B  = =3B  =3B  =3B  =3B  =3B2

(the chap= ter title underneath its number and left aligned=2C just like everything el= se)

The following code used to do the job with MkI= I but it doesn't anymore with MkIV :

\setupla= beltext[chapter=3DCHAPTER~]
\setuplist[chapter][label=3Dyes=2C&nb= sp=3Bstyle=3D{\blank[0cm]}]
\starttext

\star= tfrontmatter
\completecontent
\stopfrontmatter

\startbodymatter
\chapter{Title of chapter}
\section{Title of section}
\stopbodymatter

\stoptext =3B

Instead=2C I get = something like this (I hope it turns out readable through the email) :

Contents
 =3B =3B  =3BCHAPTE= R 1
 =3B =3BTitle of= chapter  =3B  =3B  =3B  =3B  =3B  =3B  =3B &nb= sp=3B  =3B  =3B  =3B  =3B2
1.1  =3B  =3BTitle of section  =3B  =3B &nbs= p=3B  =3B  =3B  =3B  =3B  =3B2

where the 2 lines of the chapter=2C together with their alignment wi= th the frame=2C get tossed to the right...
=
I do get with MkIV the first example like you expect but =93= style=3D{\blank[0cm]}=94
is the wrong way. Such a layout can be e= asily done with your own list-command
for chapter but the labelte= xt is tricky:

\setuplabeltext[chapter=3DCHAPT= ER~]

% \define[3]\ChapterList % no label!
%  =3B {#1\crlf#2\wordright{#3}}

% \def= ine[3]\ChapterList % fixed label=2C wrong for appendices!
%  = =3B {\labeltext{chapter}#1\crlf#2\wordright{#3}}

=
\define[3]\ChapterList
 =3B =3B{\currentlistsymbol\c= rlf#2\wordright{#3}}

\setuplist[chapter][label=3Dy= es=2Calternative=3Dcommand=2Ccommand=3D\ChapterList]

\starttext

\startfrontmatter
\complet= econtent
\stopfrontmatter

\startbodymatt= er
\chapter{Title of chapter}
\section{Title of section= }
\stopbodymatter

\stoptext
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 ___________________________________________________________________________= ________
=20
_______________________________________________________________________= ____________ 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 ___________________________________________________________________________= ________
= --_48ff17c8-681b-41a8-850b-9d492cc54b57_-- --===============2073455263== 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 ___________________________________________________________________________________ --===============2073455263==--