I have a figure that I don't want to float, i.e. I generate it with
\begin{center}
\includegraphics[width=80mm]{figure_file}
\end{center}
\stepcounter{figure}
Figure~\arabic{figure}. \label{fig:A}
Caption text here.
As shown in Fig.~\ref{fig:A}, this does not work!
However, the \label{} command does, of course, not generate the desired reference marker. My question: how can I force this?
\stepcounterto\refstepcounterand then put label after that command. It will work then. – TeXnician Oct 20 '17 at 16:53\refmacro and\refstepcounterare closely related ;-) – Oct 20 '17 at 16:57