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.- Go to the beginning of your document and include the graphics package using the command [\usepackage{graphicx}].
- 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.
- It is important that the file is located in the same directory as your LaTeX document.
There are also things to note about graphics
- 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.
- For proper formatting and placement of the graphic in the document, you need to take some precautions through the so-called figure environment.
- In LaTeX, it is also possible to create an automated figure directory based on included graphics and include it in the document.
- To create such a directory, you need the command [\includegraphics" the code "\caption[]{}] finally. In the square brackets belongs to the short caption.