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?
\stepcounter
to\refstepcounter
and then put label after that command. It will work then. – TeXnician Oct 20 '17 at 16:53\ref
macro and\refstepcounter
are closely related ;-) – user31729 Oct 20 '17 at 16:57