You define in the stylesheet how images appear in the document.
Using the graphicx package
The graphicx
package builds upon the graphics package providing a key-value interface for optional arguments to the \includegraphics
command.
This interface provides facilities that go far beyond what the graphics
package offers on its own. Do not use the older graphics package when using graphicx
.
1
2
\usepackage{graphicx}
Then you include an image in a .tex file using the following syntax:
1
\includegraphics[scale=1]{images/logo.png}
Here is another example:
1
\includegraphics[width=10.91cm, height=2.33cm]{images/rgb_logo.png}\\[-1em]
Adding captions
Not surprisingly, you define captions using the caption
package. I set up the parameters for this package as follows:
1
usepackage[font=small,format=plain,labelfont=bf,up,textfont=it,up]{caption}
This sets the font size to a LaTex defined small size and without any decoration.
Then you an insert an image in the document using the following syntax. Note that you do not need to include the image extenstion.
1
2
3
4
5
\begin{figure}[h!]
\centering
\includegraphics[scale=.75]{images/Image-name}
\caption{Caption of an image}
\end{figure}