ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <context@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: Numbers in appendix roman, but want arabic
Date: Fri, 13 Feb 2015 12:20:00 -0500	[thread overview]
Message-ID: <54DE3240.5070203@rik.users.panix.com> (raw)
In-Reply-To: <CAHy-LL8jQr3=M9cjrGmQ0ei8ONjRjOtC_w-Of1tCQxf8vhDXmA@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1748 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2203 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-02-13 17:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-13  8:45 Mikael P. Sundqvist
2015-02-13 17:20 ` Rik Kabel [this message]
2015-02-13 20:30   ` Mikael P. Sundqvist
2015-02-14 17:32 ` Wolfgang Schuster
2015-02-14 18:09   ` Mikael P. Sundqvist

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54DE3240.5070203@rik.users.panix.com \
    --to=context@rik.users.panix.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).