13. Inserting images

You define in the stylesheet how images appear in the document using the graphicx package. You can add captions to images using the caption package.

## Formatting images 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.

Then you include an image in a .tex file using the following syntax:

Here is another example:

## Adding captions using the caption package

You can define captions using the caption package. For example, you can define how the captions are formatting using the following:

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.

Click to continue.