Am 06.10.2026 um 18:34 schrieb Andres Conrado Montoya:
Thank you very much, Wolfgang. That works fine enough for me right now.
Hopefully there will be some documentation about user variables in
floats in the future. I'm more than willing to wikify it.
Here is a simple example where I use the userdata argument to set
additional information which is only output when you pass a value to the
parameter.
%%%% begin example
\setupcaption
[figure]
[textcommand=\FigureTextcommand]
\define[1]\FigureTextcommand
{#1% figure caption
\doifsomething{\floatuserdataparameter{name}}% has 'name' content?
{\crlf
\wordright{\floatuserdataparameter{name}}}}
\starttext
\startplacefigure[title={\samplefile{gabriel}}][name={Peter Gabriel}]
\externalfigure[https://f4.bcbits.com/img/a3835650499_16.jpg][width=.4tw]
\stopplacefigure
\stoptext
%%%% end example
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________