Menu

HowTo_Images

How to include images and pictures

Many papers include external image files. Currently the most modern package for this purpose is graphicx as part of the graphics collection. For more details on its use, see the related manual. It should be noted that you do not need the pdftex option, which is often used on the Internet, when loading the package and that it can even be annoying - not only when using LuaLaTeX or XeLaTeX. Therefore you should do without it. This is normally also true for option dvips. Therefore it is not necessary to distinguish between the different TeX engines within the document preamble and load the package with different options depending on whether PDFLaTeX, LuaLaTeX or XeLaTeX is used. A simple

\usepackage{graphicx}

is sufficient.

By the way, the package is automatically loaded by some other graphics packages such as pdfpages or TikZ and does not need to be additionally loaded explicitly. If you load it yourself after such a package, the specification of one of the mentioned options would be an error. One more reason to leave them out.


Related

Wiki (English): HowTo_Template

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.