Would you like to insert an image into your LaTeX document? We'll show you how it works..
A graphic or an image is an important part of many documents. With a few simple commands you can easily insert graphics into your LaTeX document. LaTeX takes care of the correct placement of the graphic for you in the text. You can find out how to insert an image in LaTeX in this tipps + tricks article.
Step 1: First, add the graphics package to the preamble: \usepackage{graphicx}
\usepackage{graphicx}
Step 2: You can now integrate graphics within the document using the command: " File name " must be replaced with the name and path of the graphic. You do not have to specify the file extension of the graphic. If the graphic is not in the same folder as your main document, you will also need to provide the path to where the file is located. \includegraphics{"Dateiname"}
\includegraphics{"Dateiname"}
3rd step: In the previous step, insert the graphic unformatted at the point where it is also included in your .tex file. However, you are given further options for formatting the graphic. To do this, insert the following environment, including the commands, into your document: \begin{figure}[h] \centering \includegraphics{tippstricks} \caption{Meine Grafik} \label{fig:meine-grafik} \end{figure}
\begin{figure}[h]
\centering
\includegraphics{tippstricks}
\caption{Meine Grafik}
\label{fig:meine-grafik}
\end{figure}
\begin{figure}
[h]