From: Jethro Djan <jthryeboah@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: [NTG-context] Switch number and enumeration text
Date: Sat, 4 May 2024 02:57:29 +0000 [thread overview]
Message-ID: <CAHgnkf9FbJ5+2BKy8ywK6hcHcBXT8S7Dgxkj7Ym2KrUrW=3K6Q@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 438 bytes --]
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{}{.},
]
\starttext
\chapter{}
\section{}
\starttheorem
This is a theorem
\stoptheorem
\stoptext
Many thanks,
Jethro
[-- Attachment #1.2: Type: text/html, Size: 745 bytes --]
[-- Attachment #2: Type: text/plain, Size: 511 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next reply other threads:[~2024-05-04 3:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-04 2:57 Jethro Djan [this message]
2024-05-04 6:24 ` [NTG-context] " Henning Hraban Ramm
2024-05-04 11:47 ` Wolfgang Schuster
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='CAHgnkf9FbJ5+2BKy8ywK6hcHcBXT8S7Dgxkj7Ym2KrUrW=3K6Q@mail.gmail.com' \
--to=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).