Adding images to your documents
This article concerns the
macOS
app.
See other variants:
iOS
Windows

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
\documentclass[11pt]{article}
\usepackage{graphicx}
\begin{document}
...
\includegraphics{my-image.png}
...
\end{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

typesetting/macos/image-import-step1.png

will result in inserting

\includegraphics{image-import.png}

into the editor.

typesetting/macos/image-import-step2.png

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