[OS X TeX] disappearing cross-reference

Murray Eisenberg murrayeisenberg at gmail.com
Tue Jun 29 16:34:48 CEST 2021

> On 29 Jun2021, at 7:25 AM, Pieter van Oostrum <pieter-l at vanoostrum.org> wrote:
> Murray Eisenberg <murrayeisenberg at gmail.com <mailto:murrayeisenberg at gmail.com>> writes:
>> A _very_ peculiar thing happens from time to time when running pdflatexmk -- or just running latex
>> 3 times! -- in TeXShop 4.64 (under macOS 11.4) with TeXLive 2021 on a book-length document whose
>> body consists of many subsidiary files: the cross-reference to one particular theorem with a \
>> label disappears (it was there after the 3nd latex run!!) and so the \cref to that label gives a
>> “??” in the output.
>> The really peculiar thing is that if I just run typeset twice with the latex engine, everything is
>> OK. It’s only when I then run pdflatexmk (with or without first Trashing all aux files), or after
>> doing 3 consecutive latex runs, that the cross-reference cannot be resolved.  
>> To make sure I did not accidentally put some non-printing character in the label when referencing
>> it, I carefully retyped the original \label{…} command and did a copy-and-past of the argument
>> there to the argument of the subsequent \cref.
>> This has happened with _different_ theorems’ labels at different times while working on this
>> document!
>> In each case, the errant label will have the form “kind:long-label-hyphens-separating” where
>> ‘kind’ might be ’thm”, e.g. The particular label creating the problem at the moment is in:
>> \begin{theorem}%
>> \label{thm:sup-metric-bded-cont-complete}
>> Let $(X, d)$ be a metric space….
>> \end{theorem}
> Could it be that the language selected with babel in that region of the input has changed  `:' to something else? This sometimes happens if `:' gets special treatment, like for instant in French.

I am aware of the issue of the colon in labels when babel is being used, but that does not seem to be the problem here:

	(1) there is no change in language in the vicinity of the text involved, either in the theorem or in its subsequent cross-reference; and

	(2) the problem persists even if I change the label to "THM-sup-metric-bded-cont-complete”, namely, after the THIRD latex run, the cross-reference disappears!

Murray Eisenberg		murrayeisenberg at gmail.com
Mobile (413)-427-5334
503 King Farm Blvd #101		
Rockville, MD 20850-6667	

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/macostex-archives/attachments/20210629/a1a581ea/attachment.html>
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
TeX on Mac OS X Website: http://mactex-wiki.tug.org/
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex

More information about the macostex-archives mailing list.