summaryrefslogtreecommitdiff
path: root/support/texlab/docs/tectonic.md
blob: e75fd4a3ee59da50252a4887378bae017b09f817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Usage with `tectonic`

[`tectonic`](https://tectonic-typesetting.github.io/) 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.auxDirectory` if you change the build directory with the `--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

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

## V1 CLI

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