Inserting images

You define in the stylesheet how images appear in the document.

Using the graphicx package

The graphicx pack­age builds upon the graph­ics pack­age pro­vid­ing a key-value in­ter­face for op­tional ar­gu­ments to the \in­clude­graph­ics com­mand.

This in­ter­face pro­vides fa­cil­i­ties that go far be­yond what the graph­ics pack­age of­fers 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}