|
1 |
| -# Tectonic’s Command Line Interface |
| 1 | +# Tectonic's Command Line Interface |
2 | 2 |
|
3 |
| -So much to add here! [Go do it!](github.com/tectonic-typesetting/tectonic/pull/new). |
| 3 | +Tectonic has many command line options. |
| 4 | +If you have Tectonic installed, you can view them with `tectonic --help`. |
| 5 | + |
| 6 | +The following are the available flags. |
| 7 | + |
| 8 | +| Short | Full | Explanation | |
| 9 | +|:------|:--------------------------|:-----------------------------------------------------------------------------------------------| |
| 10 | +| `-h` | `--help` | Prints help information | |
| 11 | +| `-k` | `--keep-intermediates` | Keep the intermediate files generated during processing | |
| 12 | +| | `--keep-logs` | Keep the log files generated during processing | |
| 13 | +| `-C` | `--only-cached` | Use only resource files cached locally | |
| 14 | +| `-p` | `--print` | Print the engine's chatter during processing | |
| 15 | +| | `--synctex` | Generate SyncTeX data | |
| 16 | +| `-V` | `--version` | Prints version information | |
| 17 | + |
| 18 | +The following are the available options. |
| 19 | + |
| 20 | +| Short | Full | Explanation | |
| 21 | +|:------|:--------------------------|:-----------------------------------------------------------------------------------------------| |
| 22 | +| `-b` | `--bundle <PATH>` | Use this Zip-format bundle file to find resource files instead of the default | |
| 23 | +| `-c` | `--chatter <LEVEL>` | How much chatter to print when running [default: default] [possible values: default, minimal] | |
| 24 | +| | `--format <PATH>` | The name of the "format" file used to initialize the TeX engine [default: latex] | |
| 25 | +| | `--hide <PATH>...` | Tell the engine that no file at <PATH> exists, if it tries to read it | |
| 26 | +| | `--makefile-rules <PATH>` | Write Makefile-format rules expressing the dependencies of this run to <PATH> | |
| 27 | +| `-o` | `--outdir <OUTDIR>` | The directory in which to place output files [default: the directory containing INPUT] | |
| 28 | +| | `--outfmt <FORMAT>` | The kind of output to generate [default: pdf] [possible values: pdf, html, xdv, aux, format] | |
| 29 | +| | `--pass <PASS>` | Which engines to run [default: default] [possible values: default, tex, bibtex_first] | |
| 30 | +| `-r` | `--reruns <COUNT>` | Rerun the TeX engine exactly this many times after the first | |
| 31 | +| `-w` | `--web-bundle <URL>` | Use this URL find resource files instead of the default | |
| 32 | + |
| 33 | +If you specify a path, make sure to put it into brackets when it contains spaces. |
| 34 | + |
| 35 | +Then, after specifying flags and options, you have to provide the actual input to tectonic. |
| 36 | +This can be a (path to a) file, or "-" to process the standard input stream. |
| 37 | + |
| 38 | +In short, the usage is `tectonic [FLAGS] [OPTIONS] <INPUT>`. |
| 39 | + |
| 40 | +An example would be `tectonic --synctex --reruns 0 -o ../out/ main.tex`. |
0 commit comments