Skip to content

Build

To build your document into a PDF, use the --build (or -b) option. This command compiles the generated file using the default engine. TeXSmith uses tectonic by default as it is the only self-contained engine, but you can configure it to use lualatex or xelatex via latexmk if preferred. Here is an example of a simple document built with different engines:

$ uv run texsmith cheese.md cheese.bib -tarticle --build --engine=xelatex
$ uv run texsmith cheese.md cheese.bib -tarticle --build --engine=lualatex
$ uv run texsmith cheese.md cheese.bib -tarticle --build --engine=tectonic