Build¶
To build your LATEX document into a PDF, use the --build (or -b) option. This command compiles the generated LATEX file using the default engine. TeXSmith uses tectonic by default as it is the only self-contained LATEX 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