<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 29 Jun2021, at 7:25 AM, Pieter van Oostrum <<a href="mailto:pieter-l@vanoostrum.org" class="">pieter-l@vanoostrum.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Murray Eisenberg <<a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">A _very_ peculiar thing happens from time to time when running pdflatexmk -- or just running latex<br class="">3 times! -- in TeXShop 4.64 (under macOS 11.4) with TeXLive 2021 on a book-length document whose<br class="">body consists of many subsidiary files: the cross-reference to one particular theorem with a \<br class="">label disappears (it was there after the 3nd latex run!!) and so the \cref to that label gives a<br class="">“??” in the output.<br class=""><br class="">The really peculiar thing is that if I just run typeset twice with the latex engine, everything is<br class="">OK. It’s only when I then run pdflatexmk (with or without first Trashing all aux files), or after<br class="">doing 3 consecutive latex runs, that the cross-reference cannot be resolved.  <br class=""><br class="">To make sure I did not accidentally put some non-printing character in the label when referencing<br class="">it, I carefully retyped the original \label{…} command and did a copy-and-past of the argument<br class="">there to the argument of the subsequent \cref.<br class=""><br class="">This has happened with _different_ theorems’ labels at different times while working on this<br class="">document!<br class=""><br class="">In each case, the errant label will have the form “kind:long-label-hyphens-separating” where<br class="">‘kind’ might be ’thm”, e.g. The particular label creating the problem at the moment is in:<br class=""><br class="">\begin{theorem}%<br class="">\label{thm:sup-metric-bded-cont-complete}<br class="">Let $(X, d)$ be a metric space….<br class=""><br class="">\end{theorem}<br class=""></blockquote><br class="">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.<br class=""></div></div></blockquote><br class=""></div><div>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.</div><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">---<br class="">Murray Eisenberg<span class="Apple-tab-span" style="white-space: pre;">                </span><a href="mailto:murrayeisenberg@gmail.com" class="">murrayeisenberg@gmail.com</a></div><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Mobile (413)-427-5334<br class="">503 King Farm Blvd #101<span class="Apple-tab-span" style="white-space: pre;">             </span><br class="">Rockville, MD 20850-6667<span class="Apple-tab-span" style="white-space: pre;">     </span><br class=""><br class=""><br class=""><br class=""><br class=""></div>
</div>
<br class=""></body></html>