A weird, possibly trivial, problem is happening.
After running pdflatex test
with the following in the file test.tex
% -*- coding: utf-8 -*-
\documentclass[11pt]{article}
\begin{document}
\thispagestyle{empty}
We greet in Figure~\ref{myfig}.
\begin{figure}[h]
\centering\large hello
\label{myfig}
\caption{greet}
\end{figure}
\end{document}
one time, I find in the file test.aux, as expected:
\relax
\newlabel{myfig}{{}{1}}
and I duly get warned that:
LaTeX Warning: There were undefined references.
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
But after a second run of pdflatex test
, the number 1
does not appear where it should
and the warning no longer appears, suggesting all is well.
Where should I be looking?
(I've tried:
- Deleting the aux file and recompiling.
- Using xelatex and lualatex.
)
I'm using TeX Live 2015 on El Capitan.