ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Switch number and enumeration text
@ 2024-05-04  2:57 Jethro Djan
  2024-05-04  6:24 ` [NTG-context] " Henning Hraban Ramm
  2024-05-04 11:47 ` Wolfgang Schuster
  0 siblings, 2 replies; 3+ messages in thread
From: Jethro Djan @ 2024-05-04  2:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Switch number and enumeration text
  2024-05-04  2:57 [NTG-context] Switch number and enumeration text Jethro Djan
@ 2024-05-04  6:24 ` Henning Hraban Ramm
  2024-05-04 11:47 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Henning Hraban Ramm @ 2024-05-04  6:24 UTC (permalink / raw)
  To: ntg-context

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Switch number and enumeration text
  2024-05-04  2:57 [NTG-context] Switch number and enumeration text Jethro Djan
  2024-05-04  6:24 ` [NTG-context] " Henning Hraban Ramm
@ 2024-05-04 11:47 ` Wolfgang Schuster
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Schuster @ 2024-05-04 11:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jethro Djan

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-05-04 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-04  2:57 [NTG-context] Switch number and enumeration text Jethro Djan
2024-05-04  6:24 ` [NTG-context] " Henning Hraban Ramm
2024-05-04 11:47 ` Wolfgang Schuster

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).