Switch number and enumeration text
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
Am 04.05.24 um 04:57 schrieb Jethro Djan:
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
Did you try: text=, stopper={ Theorem}, ? There are so many parameters in https://wiki.contextgarden.net/Command/setupenumeration and https://wiki.contextgarden.net/Command/setupcounter … Hraban
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
participants (3)
-
Henning Hraban Ramm
-
Jethro Djan
-
Wolfgang Schuster