[OS X TeX] disappearing cross-reference
Murray Eisenberg
murrayeisenberg at gmail.com
Thu Jul 1 21:25:24 CEST 2021
> On 29 Jun2021, at 7:25 AM, Pieter van Oostrum <pieter-l at vanoostrum.org> wrote:
>
> 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.
I have now removed french from the babel optional argument (and any references to changing language to French in the document body), yet still the disappearing cross-reference persists, reliably vanishing on the third latex run.
---
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/20210701/06037b69/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
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.