Adding images to your documents
This article concerns the
See other variants:

To typeset with images in either Texpad iOS and macOS you use a graphics package, e.g. graphicx (added to your LaTeX source using the usual \includegraphics{...} command). So to include an image saved as file my-image.png, we’d write the following LaTeX code,

A basic example of adding images to your LaTeX document

On macOS, in addition to including the relative or the full path of the image in the \includegraphics{image.png} tag, you can simply drag and drop image in the Texpad editor, which will insert the full command for you. For instance, dragging an image file image-import.png


will result in inserting


into the editor.


If you’re using the default live typesetter, the image will instantly render itself into the output PDF as shown above.