From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/59008 Path: news.gmane.org!not-for-mail From: Alan BRASLAU Newsgroups: gmane.comp.tex.context Subject: Re: "\setuplabeltext [appendix=Appendix ]" broken mkiv Date: Sun, 23 May 2010 14:02:28 +0200 Organization: CEA DSM-IRAMIS-SPEC Message-ID: <201005231402.29238.alan.braslau@cea.fr> References: <201002151631.21610.alan.braslau@cea.fr> <6faad9f01002171330o2376ac5ds9857880578e52864@mail.gmail.com> <4B7C6153.9060803@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1274616165 19183 80.91.229.12 (23 May 2010 12:02:45 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 23 May 2010 12:02:45 +0000 (UTC) Cc: ntg-context@ntg.nl To: Hans Hagen Original-X-From: ntg-context-bounces@ntg.nl Sun May 23 14:02:39 2010 connect(): No such file or directory 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 1OG9t8-0005jx-S0 for gctc-ntg-context-518@m.gmane.org; Sun, 23 May 2010 14:02:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B2404C9C15; Sun, 23 May 2010 14:02:37 +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 znX48L7C-6+c; Sun, 23 May 2010 14:02:34 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D515C9C04; Sun, 23 May 2010 14:02:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F6A9C9C04 for ; Sun, 23 May 2010 14:02:33 +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 NzeJ2y8Ff07F for ; Sun, 23 May 2010 14:02:31 +0200 (CEST) Original-Received: from oxalide-out.extra.cea.fr (oxalide-out.extra.cea.fr [132.168.224.1]) by balder.ntg.nl (Postfix) with ESMTP id 169BBC9BF4 for ; Sun, 23 May 2010 14:02:30 +0200 (CEST) Original-Received: from epeire2.extra.cea.fr (epeire2.extra.cea.fr [132.167.198.32]) by oxalide.extra.cea.fr (8.14.2/8.14.2/CEAnet-Internet-out-2.0) with ESMTP id o4NC2Uto027732 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 23 May 2010 14:02:30 +0200 Original-Received: from orpin1.extra.cea.fr (orpin1.extra.cea.fr [132.167.198.4]) by epeire2.extra.cea.fr (8.14.4/8.14.4) with ESMTP id o4NC2Tk7005915; Sun, 23 May 2010 14:02:30 +0200 (envelope-from alan.braslau@cea.fr) Original-Received: from iram-hb-003386.localnet (scylla.saclay.cea.fr [132.166.43.101]) by orpin1.extra.cea.fr (8.13.8/8.13.8/CEAnet-Extranet-out-1.1) with ESMTP id o4NC2TKV026466; Sun, 23 May 2010 14:02:29 +0200 User-Agent: KMail/1.13.3 (Linux/2.6.32; KDE/4.4.3; x86_64; ; ) In-Reply-To: <4B7C6153.9060803@wxs.nl> 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:59008 Archived-At: On Wednesday 17 February 2010 22:36:19 Hans Hagen wrote: > On 17-2-2010 22:30, Mojca Miklavec wrote: > > I defined the second list for that purpose (really ugly, but the > > fastest way to get it done). But there was a tiny problem with that as > > well (mkii more problematic) - I didn't manage to get the spacing > > between two consecutive lists right. For example (compare mkii and > > > mkiv): > concerning tricks ... today i defined the hybrids between chapter/title, > section/subject etc > > \definehead[chaptle] [chapter] > \definehead[suction] [section] > \definehead[subsuction] [subsection] > \definehead[subsubsuction][subsubsection] > > \setuphead > [chaptle,suction,subsuction,subsubsuction] > [incrementnumber=list] > > no numbers but title goes to toc. > > I might even add them to the core some day > > Hans Continuing an old thread... with four questions (and no tricks): FIRST QUESTION: "chaptle", "suction"? I get it! But I did not immediately (maybe I am a bit slow). It's too clever to be easily retained so I suggest finding another solution. Would not a better syntax be something like: \section [number=no] {Conclusions} \chapter [number=no] {A final word} (from a user's point-of-view, I haven't looking into the programming)? SECOND QUESTION: \starttext \startfrontmatter \chapter{Preface} \stopfrontmatter \startbodymatter \chapter{First chapter} \chapter{Second chapter} \stopbodymatter \startappendices \chapter{First appendix} \chapter{Second appendix} \stopappendices \startbackmatter \chapter{Concluding note} \stopbackmatter \stoptext Yields: Preface 1 First chapter 2 Second chapter A First appendix B Second appendix Concluding note As it should. However, adding \setuplabeltext[chapter=Chapter ] % with trailing space; blank by default gives a nice label in the header, yet also yields "Chapter A First appendix"... This is clearly wrong! Reading the source (strc-def.mkiv), I tried: \setuplabeltext [appendix=Appendix ] % with trailing space; blank by default but this does not work. Is this a bug? Note that I also tried: \definehead [appendix] [chapter] \setuplabeltext [appendix=Appendix ] % with trailing space; blank by default \definecombinedlist [content] [chapter,appendix] and replaced \chapter with \appendix between \startappendices\stopappendics which sort-of works: 1) this is not elegant 2) does not appear in bookmarks. THIRD QUESTION: Adding \setuplist [chapter] [label=yes,width=5em] to get the nice label to appear in the table of contents yields: Chapter Preface Chapter 1 First chapter Chapter 2 Second chapter Chapter A First appendix Chapter B Second appendix Chapter Concluding note So this is NOT the way to go! Is there a simple and elegant solution? FOURTH QUESTION: Should not the numbering (1, 2, A, B) get included in the bookmarks? If this should not be so by default, can this feature be easily activated? Alan ___________________________________________________________________________________ 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 ___________________________________________________________________________________