\hypertarget{sec:section}{%
\section{Section}\label{sec:section}}

\begin{figure}
\hypertarget{fig:figure}{%
\centering
\includegraphics{figure.png}
\caption{A Figure}\label{fig:figure}
}
\end{figure}

sec.~\ref{sec:section}

fig.~\ref{fig:figure}
