![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/e5aa6984b53b8925e405ebbdbc051ad9.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
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 -----------------------------------------------------------------
participants (3)
-
Hans Hagen
-
Henning Hraban Ramm
-
Wolfgang Schuster