LaTeX in intelliJ

The readme of idea-latex (https://github.com/hsz/idea-latex) currently lists generating PDF files under feature requests. As such it would appear that at the moment it is not possible to compile documents directly from IntelliJ IDEA with this plugin.

Therefore, your options are I guess either

  • using a terminal/command prompt to compile the document, or
  • use a different editor. A list of options can be found in LaTeX Editors/IDEs.

I just found and used this project:

https://github.com/Hannah-Sten/TeXiFy-IDEA

Still in alpha, but workable.


IntelliJ has excellent support for the Gradle build system. A suitable, albeit yet spartan, plugin for LaTeX is located at https://plugins.gradle.org/plugin/de.steffensky.latex . Use the following buildscript to get started:

buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.de.steffensky:latex-gradle-plugin:0.2.1"
    }
}

apply plugin: "de.steffensky.latex"

group 'at.ac.uibk.cl-informatik'
version '1.0-SNAPSHOT'

latex {
    documentBase = 'thesis'
    jobname = 'latex'
    pdflatexargs = []
    cookDir = 'out'
}