include graphic latex code example

Example 1: include picture in latex

\usepackage{graphicx}
\graphicspath{ {./images/} }
\includegraphics{image}

Example 2: include graphics latex

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{A project with images}
\author{Overleaf}
\date{}

\graphicspath{{Images/}}

\begin{document}

\maketitle

\section{Introduction}
\begin{figure}[htp]
    \centering
    \includegraphics[width=4cm]{InsertingImagesEx5}
    \caption{An image of a galaxy}
    \label{fig:galaxy}
\end{figure}

\end{document}

Example 3: insert figure latex

%Path relative to the main .tex file 
\graphicspath{ {./images/} }

Tags:

Misc Example