From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90218 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Numbers in appendix roman, but want arabic Date: Fri, 13 Feb 2015 12:20:00 -0500 Message-ID: <54DE3240.5070203@rik.users.panix.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0124894292==" X-Trace: ger.gmane.org 1423848063 27572 80.91.229.3 (13 Feb 2015 17:21:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 17:21:03 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 13 18:20:49 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMJv6-0005tw-17 for gctc-ntg-context-518@m.gmane.org; Fri, 13 Feb 2015 18:20:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4EBBA101E6 for ; Fri, 13 Feb 2015 18:20:47 +0100 (CET) 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 vpfNdG4cgAc7 for ; Fri, 13 Feb 2015 18:20:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 65D3A10243 for ; Fri, 13 Feb 2015 18:20:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A6B3101EA for ; Fri, 13 Feb 2015 18:20:16 +0100 (CET) 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 EnhLwPX0UI03 for ; Fri, 13 Feb 2015 18:20:15 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 178FA101E6 for ; Fri, 13 Feb 2015 18:20:04 +0100 (CET) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t1DHK3iM020359 for ; Fri, 13 Feb 2015 18:20:04 +0100 Original-Received: from [192.168.201.10] (cpe-67-240-48-174.nycap.res.rr.com [67.240.48.174]) by mailbackend.panix.com (Postfix) with ESMTPSA id 3E11E15850 for ; Fri, 13 Feb 2015 12:20:02 -0500 (EST) User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=166.84.1.89; country=US; region=New York; city=New York; latitude=40.7553; longitude=-73.9924; http://maps.google.com/maps?q=40.7553,-73.9924&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08NPRk3vW - a9a15a833964 - 20150213 Received-SPF: pass (filter3-utr.mf.surf.net: domain of context@rik.users.panix.com designates 166.84.1.89 as permitted sender) receiver=filter3-utr.mf.surf.net; client-ip=166.84.1.89; envelope-from=; helo=mailbackend.panix.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:90218 Archived-At: This is a multi-part message in MIME format. --===============0124894292== Content-Type: multipart/alternative; boundary="------------060809070706090302090004" This is a multi-part message in MIME format. --------------060809070706090302090004 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2015-02-13 03:45, Mikael P. Sundqvist wrote: > Hi, > > with the example below, I have two problems (that are probably > related). In the appendix, the Theorem is numbered "Theorem II" > instead of "Theorem 2", i.e. roman numbers are used instead of arabic > ones. > > Also, when I refer to Theorem 1 from the appendix , it says "Theorem > I". Again with roman number instead of arabic. I would prefer "Theorem > 1". > > So, the question reads: How can I get arabic numbers also in the appendix? > > (The appendix itself has the letter A as I want it to) > > /Mikael > > \starttext > > \defineenumeration[Theorem] > > > \defineconversionset [bodypart:sectioncounter] [n,n,n] [n] > \defineconversionset [appendix:sectioncounter] [n,n,A] [n] > \setuphead[chapter,section][sectionconversionset=sectioncounter] > > \chapter{Foo} > \startTheorem[thm:main] > This is a theorem. > \stopTheorem > > > \startappendices > \title{Appendix} > > \section{This is the first appendix} > > \startTheorem > This is another theorem. > \stopTheorem > > What if we refer to the first theorem, Theorem~\in[thm:main]? > > \stopappendices > \stoptext > ___________________________________________________________________________________ > In a document that has figures numbered by chapter, I use the following so that I get Figure J.5 instead of J.V -- perhaps this will provide a starting point: %%---------------------------------------------------------------------%% %% This ensures that appendix figures have numeric, not Roman, numbers %% %%---------------------------------------------------------------------%% \defineconversionset [appendix:floatconversionset] [] [n] \setupcaption[numberconversionset=floatconversionset] -- rik --------------060809070706090302090004 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
On 2015-02-13 03:45, Mikael P. Sundqvist wrote:
Hi,

with the example below, I have two problems (that are probably
related). In the appendix, the Theorem is numbered "Theorem II"
instead of "Theorem 2", i.e. roman numbers are used instead of arabic
ones.

Also, when I refer to Theorem 1 from the appendix , it says "Theorem
I". Again with roman number instead of arabic. I would prefer "Theorem
1".

So, the question reads: How can I get arabic numbers also in the appendix?

(The appendix itself has the letter A as I want it to)

/Mikael

\starttext

\defineenumeration[Theorem]


\defineconversionset [bodypart:sectioncounter] [n,n,n] [n]
\defineconversionset [appendix:sectioncounter] [n,n,A] [n]
\setuphead[chapter,section][sectionconversionset=sectioncounter]

\chapter{Foo}
\startTheorem[thm:main]
This is a theorem.
\stopTheorem


\startappendices
\title{Appendix}

\section{This is the first appendix}

\startTheorem
This is another theorem.
\stopTheorem

What if we refer to the first theorem, Theorem~\in[thm:main]?

\stopappendices
\stoptext
___________________________________________________________________________________

In a document that has figures numbered by chapter, I use the following so that I get
Figure J.5 instead of J.V -- perhaps this will provide a starting point:
%%---------------------------------------------------------------------%%
%% This ensures that appendix figures have numeric, not Roman, numbers %%
%%---------------------------------------------------------------------%%

\defineconversionset [appendix:floatconversionset] [] [n]
\setupcaption[numberconversionset=floatconversionset]

--
rik
--------------060809070706090302090004-- --===============0124894292== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0124894292==--