figures in latex code example
Example 1: include picture in latex
\usepackage{graphicx}
\graphicspath{ {./images/} }
\includegraphics{image}
Example 2: add figure numbers in latex
\begin{figure}[h!]
\caption{A picture of the universe!}
\includegraphics[width=0.5\textwidth]{universe}
\end{figure}
Example 3: insert figure latex
%Path relative to the main .tex file
\graphicspath{ {./images/} }