<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="">All,<div class=""><br class=""></div><div class="">I’m experiencing what appears to be very strange TeXShop behavior. I attribute it to TS with much trepidation, but here it goes. I’m using TS 4.68 on an M1 MacBook Pro running MacOS 12.1. I’m using MacTex 2021 and pdfTeX.</div><div class=""><br class=""></div><div class="">I’m working on a document that includes about 20 figures, all of which are PDF documents. All the figures and all LaTeX documents are in one directory so there are no path-definition issues.</div><div class=""><br class=""></div><div class=""><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""> </span><font color="#000000" class="">All but one of the figures—call it fig47---are handled correctly. fig47 is typeset and labeled correctly as Figure 3.3 in the typeset pdf document but the reference is not. When I invoke \ref{figure:fig47} in the text to refer to fig47, I get Figure 3.2 instead of Figure 3.3. Here’s the sample text:</font></div><div class=""><font color="#000000" class=""><br class=""></font></div><div class=""><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">\begin{figure}[h!] </div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">    \centering\includegraphics[scale=0.9]{fig47.pdf} \label{figure:fig47} </div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">    \caption{}</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">  \end{figure} </div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">  % </div><p style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35); min-height: 21px;" class="">  <br class="webkit-block-placeholder"></p><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">  \ref{figure:fig47}</div></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">The typeset output is </div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">3.2</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">not 3.3</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">I’ve tried lots of things to see if I can get the right reference to no avail. Here is a list: (1) changing the figure label, (2) remaking the figure with a different file name, (I’ve done this several times); (3) quitting and restarting TS, (4) moving the figure environment  to other places in the source document.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">All the other 19 figures use similar code and get the correct reference when invoked.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">As always, I appreciate your advice.</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class="">Thanks in advance,</div><div style="margin: 0px; font-stretch: normal; line-height: normal; color: rgb(78, 75, 35);" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; line-height: normal;" class=""><font color="#4e4b23" class=""><span style="caret-color: rgb(78, 75, 35);" class="">Raul Martinez </span></font></div></body></html>