Skip to content
Thomas edited this page Feb 6, 2021 · 5 revisions

In IntelliJ you can use the SDK settings editor to specify a custom LaTeX SDK, in order to let TeXiFy know where your LaTeX installation is. This is of course only necessary if it is not in your PATH already, but in some cases (like with a Flatpak installation) it is not possible to modify your PATH.

You can find these settings in File  Project Structure. Under SDKs you can see all the configured SDKs. If you click the plus button there, you can see the different types of SDKs you can add but it also shows automatically detected SDKs.

Once you have created an SDK (which is a global setting), you can select it as Project SDK under the Project menu. Then you can in your run configuration under LaTeX Distribution select Use project SDK. It is probably a good idea to do that for your run configuration template as well if you want to use it every time.

If you don’t have pdflatex in your PATH, TeXiFy will show a warning that you won’t be able to compile.

set up sdk

Because there are many different ways to install LaTeX, and many have their own SDK type, we provide a small overview. The home path is the default path you need to select if you add such an SDK types, of course only if you did install it to the default location. In most cases, these should be detected automatically.

The column 'Support package index' indicates if TeXiFy is able to locate package sources, which is required to have autocompletion for all commands in packages. Note that MiKTeX can be installed for the user only or as admin, both of which are handled by the same SDK type.

SDK type Default home path Supports package index

MiKTeX on Mac/Linux (user install)

~/bin

yes

MiKTeX on Mac/Linux (admin install)

/usr/local/bin

no

MiKTeX on Windows (user install)

C:\Users\myusername\AppData\Local\Programs\MiKTeX 2.9

yes

MiKTeX on Windows (admin install)

?

no

MiKTeX Docker image

/usr/bin (location of the docker executable)

no

TeX Live (recommended installation)

~/texlive/2020

yes

Native TeX Live (installation using package manager)

/usr/bin (location of pdflatex executable)

no

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

Clone this wiki locally