From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/68606 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Appendix label in TOC (Table of Contents) : APPENDIX instead of CHAPTER Date: Mon, 23 May 2011 12:53:40 +0200 Message-ID: <6996C547-5EB6-450E-BEDE-402322312EEA@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="===============0513763960==" X-Trace: dough.gmane.org 1306148037 18304 80.91.229.12 (23 May 2011 10:53:57 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 May 2011 10:53:57 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 23 12:53:53 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 1QOSll-0002KD-5p for gctc-ntg-context-518@m.gmane.org; Mon, 23 May 2011 12:53:53 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 27C33CAD3C; Mon, 23 May 2011 12:53:52 +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 32QmFueWkzMb; Mon, 23 May 2011 12:53:49 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 477C5CAD3F; Mon, 23 May 2011 12:53:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5B560CAD3F for ; Mon, 23 May 2011 12:53:48 +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 Vvf8iUzNGft0 for ; Mon, 23 May 2011 12:53:46 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id 40B42CAD3C for ; Mon, 23 May 2011 12:53:46 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p4NArjpo024170 for ; Mon, 23 May 2011 12:53:45 +0200 Original-Received: by fxm18 with SMTP id 18so5331246fxm.14 for ; Mon, 23 May 2011 03:53:45 -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=ajkz3jq1rkyU9aCNHHS7eFFaYHB9XXT8wjZCAFqHNDw=; b=BdAWyYoJzFDBTmxHChrxJxCkmk/uIcRIcGTsRvX91QlGTs58mbLs8dvg62l8Fbbxsg tEPLIwX208+1h5Qi/ezu1SZonD792h4ZomtGL2m90rIVdGRBnNUYpfVm/yxI1ztJ++oS c1yH4AxnvKGDA90DROQo+IUCAYW0sj8/rVxZw= 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=mZRf5Y+eaH5WC/OZ8EpRuGl1QxSog6deGmBIzUl3TnoTuK8Dfiefo4VOQJNR3W8Wq2 M8ohnbKWV5cJj4EiaCmShAIl8UH2bF37f/Fn5XcuTnDzdlTy3VifV7jt1xWYrSty7JON qXcARIURy3mD5vzVn7UgXMRLpDLe3h8f5vVL4= Original-Received: by 10.223.92.148 with SMTP id r20mr2289721fam.64.1306148024853; Mon, 23 May 2011 03:53:44 -0700 (PDT) Original-Received: from [192.168.2.34] (p5B29496D.dip.t-dialin.net [91.41.73.109]) by mx.google.com with ESMTPS id 14sm2286887fas.6.2011.05.23.03.53.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2011 03:53:43 -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.161.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: 0rEKWRJj1 - 5a61fa7bbcdb - 20110523 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:68606 Archived-At: --===============0513763960== Content-Type: multipart/alternative; boundary=Apple-Mail-16--724177132 --Apple-Mail-16--724177132 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Am 23.05.2011 um 04:06 schrieb Mathieu DUPONT: > Hi, > > The following code : > > \setuplabeltext[chapter=CHAPTER~] > \setuplabeltext[appendix=APPENDIX~] > \setuplist [chapter] [label=yes,style={\blank[0cm]}] > > \starttext > > \completecontent > > \chapter{Title of a chapter} > > \startappendices > \chapter{Title of an appendix} > \stopappendices > > \stoptext > > results in : > > Contents > CHAPTER 1 Title of a chapter > CHAPTER A Title of an appendix > > Instead, I would like to get the following result : > > Contents > CHAPTER 1 Title of a chapter > APPENDIX A Title of an appendix > > In other words, this command : > \setuplist [chapter] [label=yes] > seems not to take this one : > \setuplabeltext[appendix=APPENDIX~] > into account. > > Am I forgetting to add another important command in my header ? > Any help would be greatly appreciated. Do you use MkII or MkIV? When i run your example with a recent installation and MkIV i get the output you expect. You should also also set the sectionblocks for the frontpart and the bodypart: \setuplabeltext[chapter=CHAPTER~] \setuplabeltext[appendix=APPENDIX~] \setuplist [chapter] [label=yes,width=7em] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{Title of a chapter} \stopbodymatter \startappendices \chapter{Title of an appendix} \stopappendices \stoptext Wolfgang --Apple-Mail-16--724177132 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Am 23.05.2011 um 04:06 schrieb = Mathieu DUPONT:

Hi,

The following code = :

\setuplabeltext[chapter=3DCHAPTER~]
\setuplabeltext[appendix=3DAPPENDIX~]
<= font class=3D"Apple-style-span" color=3D"#0070C0">\setuplist [chapter] = [label=3Dyes,style=3D{\blank[0cm]}]

\starttext

\completecontent

\chapter{Title of a = chapter}

\startappendices
\chapter{Title of an = appendix}
\stopappendices

\stoptext 

results in :

Contents
CHAPTER = 1 Title of a chapter
CHAPTER A Title of an = appendix

Instead, I would like to = get the following result :

Contents
CHAPTER 1 Title of a = chapter
APPENDIX A Title of an = appendix

In other words, this = command :
\setuplist [chapter] = [label=3Dyes]
seems not to take this one = :
\setuplabeltext[appendix=3DAPPENDIX~]
into = account.

Am I forgetting to add another = important command in my header ?
Any help would be greatly = appreciated.

Do you = use MkII or MkIV?


When i run your = example with a recent installation and MkIV
i get the output you = expect. You should also also set
the sectionblocks for the = frontpart and the = bodypart:

\setuplabeltext[chapter=3DCHAPTER~= ]
\setuplabeltext[appendix=3DAPPENDIX~]

\setuplist [chapter] = [label=3Dyes,width=3D7em]

\starttext
\startfrontmatter
\completecontent
\stopf= rontmatter

\startbodymatter
\chapter{Ti= tle of a = chapter}
\stopbodymatter

\startappendic= es
\chapter{Title of an = appendix}
\stopappendices

\stoptext

Wolfgang

= --Apple-Mail-16--724177132-- --===============0513763960== 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 ___________________________________________________________________________________ --===============0513763960==--