HOME > Office programs > Latex: Include Images And Graphics - How It Works

# LaTeX: Include images and graphics - how it works

Latex allows you to insert various graphics and images into your document. This is especially necessary when the internal creation options for tables and charts are not sufficient. An import is quite easy to implement and will only cost you a few hand movements.

### Insert images into the document

Like all other functions within LaTeX, you also include the desired image by using a command.
1. Go to the beginning of your document and include the graphics package using the command [\usepackage{graphicx}].
2. Now you can insert a graphic into the document by using the command [includegraphics{graphic}]. To do this, just replace the "Graphics" section with the absolute path of the file on your computer.
3. It is important that the file is located in the same directory as your LaTeX document.

### There are also things to note about graphics

1. Not all formats are supported by the software. Your file must be either PS, EPS, PDF, GIF, JPG or TIF. Conventional formats such as PNG, for example, are not accepted.
2. For proper formatting and placement of the graphic in the document, you need to take some precautions through the so-called figure environment.
3. In LaTeX, it is also possible to create an automated figure directory based on included graphics and include it in the document.
4. To create such a directory, you need the command [\includegraphics" the code "\caption[]{}] finally. In the square brackets belongs to the short caption.

By Kile