From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68654 Path: news.gmane.org!not-for-mail From: Mathieu DUPONT Newsgroups: gmane.comp.tex.context Subject: TOC : Chapter title under its number (separate lines) Date: Mon, 23 May 2011 18:59:54 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1250779848==" X-Trace: dough.gmane.org 1306191613 26518 80.91.229.12 (23 May 2011 23:00:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 May 2011 23:00:13 +0000 (UTC) To: ConTeXt Original-X-From: ntg-context-bounces@ntg.nl Tue May 24 01:00:09 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 1QOe6Z-000216-OH for gctc-ntg-context-518@m.gmane.org; Tue, 24 May 2011 01:00:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7002ECAD41; Tue, 24 May 2011 01:00:06 +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 W5hH3ROIH+E6; Tue, 24 May 2011 01:00:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A19D0CAD43; Tue, 24 May 2011 01:00:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0D3A0CAD43 for ; Tue, 24 May 2011 01:00:02 +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 gdX5cuWW91G6 for ; Tue, 24 May 2011 00:59:59 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id CFB59CAD41 for ; Tue, 24 May 2011 00:59:59 +0200 (CEST) Original-Received: from col0-omc2-s13.col0.hotmail.com (col0-omc2-s13.col0.hotmail.com [65.55.34.87]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4NMxwp6028920 for ; Tue, 24 May 2011 00:59:59 +0200 Original-Received: from COL107-W2 ([65.55.34.73]) by col0-omc2-s13.col0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 23 May 2011 15:59:55 -0700 X-Originating-IP: [70.30.197.40] Importance: Normal X-OriginalArrivalTime: 23 May 2011 22:59:55.0041 (UTC) FILETIME=[218DE910:01CC199D] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=65.55.34.87; 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: 03ELaXW40 - e16a40c69bc9 - 20110524 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:68654 Archived-At: --===============1250779848== Content-Type: multipart/alternative; boundary="_a5ad600a-deb5-4535-bce0-6cec2a08429a_" --_a5ad600a-deb5-4535-bce0-6cec2a08429a_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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... Thanks in advance ! Mathieu = --_a5ad600a-deb5-4535-bce0-6cec2a08429a_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi=2C

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

Conten= ts
CHAPTER 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 chapter title underneath its number and left aligned=2C just = like everything else)

The following code used to d= o the job with MkII but it doesn't anymore with MkIV :

=
\setuplabeltext[chapter=3DCHAPTER~]
\setuplist[chapter]= [label=3Dyes=2C =3Bstyle=3D{\blank[0cm]}]
\starttext

\startfrontmatter
\completecontent
\stopfrontmat= ter

\startbodymatter
\chapter{Title of c= hapter}
\section{Title of section}
\stopbodymatter

\stoptext =3B

Inste= ad=2C I get something like this (I hope it turns out readable through the e= mail) :

Contents
 =3B=  =3B  =3BCHAPTER 1
 =3B =3BTitle of chapter  =3B  =3B  =3B  =3B =  =3B  =3B  =3B  =3B  =3B  =3B  =3B  =3B2
1.1  =3B  =3BTitl= e of section  =3B  =3B  =3B  =3B  =3B  =3B  =3B=  =3B2

where the 2 lines of the chapter= =2C together with their alignment with the frame=2C get tossed to the right= ...

Thanks in advance !


Mat= hieu


= --_a5ad600a-deb5-4535-bce0-6cec2a08429a_-- --===============1250779848== 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 ___________________________________________________________________________________ --===============1250779848==--