Skip to content

Graphicspath support

Thomas Schouten edited this page Mar 14, 2020 · 5 revisions

Since 0.6.9

TeXiFy supports the use of the \graphicspath command from the graphicx package. You can use this to add extra directories in which graphicx will search for images.

For example, if you have images in a path /path/to/figures you could write

\usepackage{graphicx}
\graphicspath{{/path/to/figures/}}
\begin{document}
    \begin{figure}
        \includegraphics{figure.jpg}
    \end{figure}
\end{document}

You can also use relative paths, but no matter what path you use it has to end in a forward slash /. You also need to use forward slashes on Windows.

You can include multiple search paths by continuing the list, like \includegraphics{{/path1/}{../path2/}}.

For more information, see the documentation linked at https://ctan.org/pkg/graphicx

This documentation has moved to https://hannah-sten.github.io/TeXiFy-IDEA

Clone this wiki locally