[OS X TeX] disappearing cross-reference

Pieter van Oostrum pieter-l at vanoostrum.org
Tue Jun 29 13:25:46 CEST 2021


Murray Eisenberg <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.
-- 
Pieter van Oostrum <pieter at vanoostrum.org>
www: http://pieter.vanoostrum.org/
PGP key: [8DAE142BE17999C4]
----------- 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
                https://email.esm.psu.edu/pipermail/macosx-tex/
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.