reference figure latex code example
Example 1: figure reference latex
\ref{marker}
This prints the number assigned to the object labeled by marker
Example 2: latex figure
\usepackage{graphicx}
% inside document:
\begin{figure}
\centering
\includegraphics[scale=1]{name_of_file_inside_directory}
\caption{Your caption}
\label{given_label_that_used_to_reference_figure_in_the_future}
\end{figure}
% use float option [H] after {figure} to place figure exactly as positioned in LeTeX code
% preferably place file of image inside directory of tex file