tectonic

Compile a LaTeX source with Tectonic’s -X compile command. The built-in command runs directly rather than through a dedicated tectonic macro.

For programmatic usage, see reports.

Default run name: tectonic

cikit tectonic docs/manual.tex --cwd docs

Arguments and options

  • source: Main .tex source file (required; resolved relative to the project root).

  • --cwd PATH: Working directory for Tectonic (default: project root).

  • --timeout SECONDS: Compilation timeout (default: 300).

Requires: Tectonic and the TeX inputs/packages used by the source.

Results: PDF build artifact, command log, native TeX log if available, build_time metric, and the generic RST build report.

Build duration and available command and native TeX logs are registered before checking Tectonic’s return code. If compilation fails, these diagnostics remain available. The PDF and RST build report are generated only after successful compilation and validation of the PDF output.