Willi, offlist: Have to admit I didn't actually try your own comment, but if it doesn't work, I'll be interested in the eventual answer. I recently had to do something similar for the TOC, and Hraban pointed me to \currentlistentrynumber. There probably has to be a command along those lines (which led me to your 2011 comment, sorry 😁) for non-list retrieval. \structurenumber? \currentstructurenumber? Something along those lines? There seem to be a number of these but as yet undocumented as far as I can see. Julian On 22/3/22 10:19, Willi Egger via ntg-context wrote:
Hi Julian,
:-) I am confronted with my own comments :-)
However, this is precisely what I am using in my attempt to get this hidden number. But no it does not appear…
Thank you! Willi
On 21 Mar 2022, at 22:33, jbf via ntg-context
wrote: Willi,
I see a comment by yourself back in 2011 at https://wiki.contextgarden.net/Last_Head_Number
I wonder if this helps?
Julian
On 22/3/22 07:47, Willi Egger via ntg-context wrote:
Hello everybody!
I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it?
Kind regards
Willi ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________