From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/82194 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How do you customize the chapter number format? Date: Mon, 29 Apr 2013 22:31:38 +0200 Message-ID: References: <517ebf17.068f440a.374b.ffff8606@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1367267520 12451 80.91.229.3 (29 Apr 2013 20:32:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Apr 2013 20:32:00 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 29 22:32:01 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UWujt-0000KI-DL for gctc-ntg-context-518@m.gmane.org; Mon, 29 Apr 2013 22:31:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id CC247101E0; Mon, 29 Apr 2013 22:31:55 +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 J7NCZpoML0R0; Mon, 29 Apr 2013 22:31:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 41A51101E4; Mon, 29 Apr 2013 22:31:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91891101E4 for ; Mon, 29 Apr 2013 22:31: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 KNY9wGpX10Cq for ; Mon, 29 Apr 2013 22:31:51 +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 881B0101E0 for ; Mon, 29 Apr 2013 22:31:41 +0200 (CEST) Original-Received: from mail-ea0-x22e.google.com (mail-ea0-x22e.google.com [IPv6:2a00:1450:4013:c01::22e]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r3TKsJqe026949 for ; Mon, 29 Apr 2013 22:54:19 +0200 Original-Received: by mail-ea0-f174.google.com with SMTP id g14so1367935eak.5 for ; Mon, 29 Apr 2013 13:31:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=1QPnoT1kQsQZaQWaRB+/CKJC01jQ8dkj0GI42RCre3o=; b=uBUMgbxBnUiO3m8blctJPYYGRKuE0kUlonBo0IZufLuOXhFAk2bb3C+veNzVJXsdLg pG2u9gq7FeZEtsYC8YtBnJEU8fkl8bB/wYil/PtIy56Xp/AjkiBXOjHZqObtnCF6m2CN E2a34E2GBaI1YyoyhkLF0Gnn4px8Yulc9RH0Ymf5Nbsr38//Xf+cRWyS83jsGHH40wWO O3/NUAr+RGrFBmKOU+rvz71R/z/sAat2pqeSmTeTYB4CtZ3OIh6Ml8nYPjRphjpo1sgH NaOKSAorEnN7Qntc35xg8lhZhZJRM0FUVQyDNdAdmso2RgFw4rK9mriiu8869z8Da33o k1yA== X-Received: by 10.14.182.72 with SMTP id n48mr127733094eem.3.1367267500935; Mon, 29 Apr 2013 13:31:40 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4d073b05.pool.mediaWays.net. [77.7.59.5]) by mx.google.com with ESMTPSA id cd3sm34707720eeb.6.2013.04.29.13.31.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 13:31:40 -0700 (PDT) In-Reply-To: <517ebf17.068f440a.374b.ffff8606@mx.google.com> X-Mailer: Apple Mail (2.1503) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22e; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01JtUSjlE - e21e4ee8e218 - 20130429 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:82194 Archived-At: Am 29.04.2013 um 20:42 schrieb Lance Larsen : > I am trying to update the chapter number formatting for the chapter heading. > By default the numbering is like > > 1 First Chapter > 1.1 First Section > > I would like to change this to: > > 1.0 First Chapter > 1.1 First Section > > Adding the following command worked, except it did not change the numbering > in the table of contents: > > \setuphead[chapter][numbercommand=\groupedcommand{}{.0\blank[2cm]}] > > Any suggestions for how I change the numbering so that the 1.0 shows up in > the table of contents as well? \define[1]\ChapterConversion {\convertnumber{Numbers}{#1}.0} \defineconversion[ChapterConversion][\ChapterConversion] \setuphead[chapter][conversion=ChapterConversion] \starttext \completecontent \chapter{First Chapter} \section{First Section} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________