\hypertarget{first-section}{%
\section{* First Section}\label{first-section}}

text

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

\hypertarget{subsection}{%
\subsection{*.A Subsection}\label{subsection}}

other text

\begin{figure}
\hypertarget{fig:fig2}{%
\centering
\includegraphics{image.png}
\caption{A figure with custom label}\label{fig:fig2}
}
\end{figure}

\hypertarget{subsubsection}{%
\subsubsection{*.A.A Subsubsection}\label{subsubsection}}

text text text
