ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Jethro Djan <jthryeboah@gmail.com>
Subject: [NTG-context] Re: Switch number and enumeration text
Date: Sat, 4 May 2024 13:47:44 +0200	[thread overview]
Message-ID: <3250692c-5766-e2a6-2ca2-d3d43ecfd13d@gmail.com> (raw)
In-Reply-To: <CAHgnkf9FbJ5+2BKy8ywK6hcHcBXT8S7Dgxkj7Ym2KrUrW=3K6Q@mail.gmail.com>

Jethro Djan schrieb am 04.05.2024 um 04:57:
> Dear List,
> 
> I would like to get something like:
> 
> 1.1 Theorem instead of Theorem 1.1.
> 
> Seems simple enough but can't figure out how to switch the number and 
> the text. I have the following MWE:
> 
> \defineenumeration[theorem][
>    prefix=chapter,
>    text=Theorem,
>    style=italic,
>    headstyle=bold,
>    headcommand=\groupedcommand{}{.},
> ]

\defineenumeration [theorem]
   [...,
    text=,
    stopper=.,
    numbercommand=\groupedcommand{}{ Theorem},
    ...]

or

\defineenumeration [theorem]
   [...,
    text=,
    stopper=.,
    right={ Theorem},
    ...]

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

      parent reply	other threads:[~2024-05-04 11:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-04  2:57 [NTG-context] " Jethro Djan
2024-05-04  6:24 ` [NTG-context] " Henning Hraban Ramm
2024-05-04 11:47 ` Wolfgang Schuster [this message]

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=3250692c-5766-e2a6-2ca2-d3d43ecfd13d@gmail.com \
    --to=wolfgang.schuster.lists@gmail.com \
    --cc=jthryeboah@gmail.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).