* [NTG-context] combining float counters
@ 2024-07-31 18:43 Henning Hraban Ramm
2024-07-31 18:49 ` [NTG-context] " Wolfgang Schuster
2024-07-31 18:56 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-07-31 18:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi, I defined new float types for special figure/caption placement, but
would like to use the general figure counter. I didn’t find a setup for
that. How can I do this?
pseudocode:
\setupfloat[myfigure][
counter=figure,
]
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] 4+ messages in thread
* [NTG-context] Re: combining float counters
2024-07-31 18:43 [NTG-context] combining float counters Henning Hraban Ramm
@ 2024-07-31 18:49 ` Wolfgang Schuster
2024-07-31 18:56 ` Henning Hraban Ramm
2024-07-31 18:56 ` Hans Hagen
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2024-07-31 18:49 UTC (permalink / raw)
To: mailing list for ConTeXt users, Henning Hraban Ramm
Henning Hraban Ramm schrieb am 31.07.2024 um 20:43:
> Hi, I defined new float types for special figure/caption placement,
> but would like to use the general figure counter. I didn’t find a
> setup for that. How can I do this?
>
> pseudocode:
>
> \setupfloat[myfigure][
> counter=figure,
> ]
\useMPlibrary[dum]
\definefloat[myfigure][figure]
\starttext
\startplacefigure[title=Figure]
\externalfigure[dummy-a]
\stopplacefigure
\startplacemyfigure[title=Myfigure]
\externalfigure[dummy-a]
\stopplacemyfigure
\stoptext
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] 4+ messages in thread
* [NTG-context] Re: combining float counters
2024-07-31 18:49 ` [NTG-context] " Wolfgang Schuster
@ 2024-07-31 18:56 ` Henning Hraban Ramm
0 siblings, 0 replies; 4+ messages in thread
From: Henning Hraban Ramm @ 2024-07-31 18:56 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 31.07.24 um 20:49 schrieb Wolfgang Schuster:
> Henning Hraban Ramm schrieb am 31.07.2024 um 20:43:
>> Hi, I defined new float types for special figure/caption placement,
>> but would like to use the general figure counter. I didn’t find a
>> setup for that. How can I do this?
> \definefloat[myfigure][figure]
Uh, of course! Thank you, I was “standing on the hose” ;)
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] 4+ messages in thread
* [NTG-context] Re: combining float counters
2024-07-31 18:43 [NTG-context] combining float counters Henning Hraban Ramm
2024-07-31 18:49 ` [NTG-context] " Wolfgang Schuster
@ 2024-07-31 18:56 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2024-07-31 18:56 UTC (permalink / raw)
To: Henning Hraban Ramm, mailing list for ConTeXt users
On 7/31/2024 8:43 PM, Henning Hraban Ramm wrote:
> Hi, I defined new float types for special figure/caption placement, but
> would like to use the general figure counter. I didn’t find a setup for
> that. How can I do this?
>
> pseudocode:
I assume you did:
\definefloat[myfigure][figure]
and then use \startmyfigure etc
> \setupfloat[myfigure][
> counter=figure,
> ]
>
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2024-07-31 19:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31 18:43 [NTG-context] combining float counters Henning Hraban Ramm
2024-07-31 18:49 ` [NTG-context] " Wolfgang Schuster
2024-07-31 18:56 ` Henning Hraban Ramm
2024-07-31 18:56 ` Hans Hagen
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).