Hi Hans,
On Sat, 2025-09-20 at 19:04 +0200, Hans Hagen via ntg-context wrote:
> On 9/20/2025 9:10 AM, Max Chernoff via ntg-context wrote:
> > I found a rather perplexing bug. Sample document:
>
> Come on, if i observe right, you're not perplexed that fast ...
What confused me in this case was that I tried diffing the ".tuc" files,
but it showed nothing that looked relevant.
> Search for \protected\def\publ_cite_set_meaning#1% and comment these
> lines and do some tests.
>
> % \setupbtx
> % [\c!specification=\v!default]%
>
> you can also say:
>
> % \disableexperiments[structure.tags.blobs.cite]
Yup, both of those work, thanks!
> ps. Mikael pointed me to a question on SE about numbers and I looked
> into that. Then when we discussed it we noticed that you posted a
> solution which uses the 'used' which indeed is what is needed. But it's
> a bit nasty to overload numbercommand which is why i made a hack a bit
> deeper down.
>
> I added an extra checker so that one can do things like
>
> \doifelsesomething
> {\expand\getreference[used][\currentplaceformulareference]}
>
> and \doifelsereferenced as checker. We're still pondering if it should
> be a feature (trivial patch) as it's kind of weird to have numbered
> formulas this way.
It's definitely a pretty weird feature, but it does kind of make sense
to not show labels that haven't been referenced anywhere.
On a similar topic, another question on SE from the same user required a
rather complicated answer:
https://tex.stackexchange.com/a/751413
Right now,
\definereferenceformat[myreference][label=*]
doesn't seem to do anything useful: all the section references have
"hidden=true" set in "lang-txt.lua", so "\labeltext" returns nothing;
and the non-section references set "metadata.name" instead of
"titledata.label", so "\getcurrentreferencelabel" also returns nothing.
Thanks,
-- Max
___________________________________________________________________________________
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
___________________________________________________________________________________