Skip to content

Tectonic

Patrick Förster edited this page Jun 28, 2026 · 2 revisions

tectonic is a modernized, alternative TeX engine. Most features of texlab work out of the box when using tectonic. To compile documents through texlab, you need to change the configuration. See tectonic --help for more information about the flags.


Hint:

Please make sure to set texlab.build.pdfDirectory and texlab.build.auxDirectory to the configured output directory (see --outdir argument).

Also, --keep-intermediates is recommended because they allow texlab to find out the section numbers and show them in the completion. Without the --keep-logs flag, texlab won't be able to report compilation warnings.


V2 CLI

{
  "texlab.build.executable": "tectonic",
  "texlab.build.args": [
    "-X",
    "compile",
    "%f",
    "--synctex",
    "--keep-logs",
    "--keep-intermediates"
  ],
  "texlab.build.pdfDirectory": "build",
  "texlab.build.auxDirectory": "build"
}

V1 CLI

{
  "texlab.build.executable": "tectonic",
  "texlab.build.args": [
    "%f",
    "--synctex",
    "--keep-logs",
    "--keep-intermediates"
  ],
  "texlab.build.pdfDirectory": "build",
  "texlab.build.auxDirectory": "build"
}

Clone this wiki locally