I am unable to give the figure a name or figure number using the following latex command for, instance:
$\vcenter{\hbox{\includegraphics[height=6.6em]{C:/Users/abc/Documents/g2}}}$
. Thanks
1 Answer
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[height=6.6em]{example-image}
\caption{An example image\label{eximg}}
\end{figure}
Some text, see Figure \ref{eximg}.
\end{document}
\vcenter
? Are you using afigure
environment?