[NTG-context] Trace references

Hans Hagen pragma at wxs.nl
Thu Sep 8 18:17:39 CEST 2016

On 9/8/2016 4:45 PM, Henri Menke wrote:
> On 09/08/2016 03:46 PM, Wolfgang Schuster wrote:
>>> Henri Menke <mailto:henrimenke at gmail.com>
>>> 8. September 2016 um 15:35
>>> Dear list,
>>>
>>> when using cross referencing in my document, LaTeX has the nice warning messages
>>>
>>> LaTeX Warning: Reference 'foo' on page XX undefined on input line YY.
>>> LaTeX Warning: Label foo' multiply defined.
>>> LaTeX Warning: There were undefined references.
>>> LaTeX Warning: There were multiply-defined labels.
>>>
>>> Is there something similar in ConTeXt? The wiki is a little outdated in that regard as \tracereferences does not exist anymore and also is probably not what I'm looking for. I already found \usemodule[references-show] but this only prints annotations on the page.
>> You can use trackers:
>>
>> \enabletrackers[structures.referencing]
>> \enabletrackers[structures.referencing.analyzing]
>> \enabletrackers[structures.referencing.identifying]
>> \enabletrackers[structures.referencing.importing]
>> \enabletrackers[structures.referencing.empty]
>
> Thanks for the pointer, but that is not really what I'm after.  Enabling all these trackers clutters my log all the internal reference information.  I just want to know which ones are undefined and which are duplicate.

then just look in the log file

\in[foo]

produces

references      > start problematic references

references      > unknown >    1: [][foo]

references      > stop problematic references

-----------------------------------------------------------------
`