Skip to content

Documents and presentations

Calkit builds papers, reports, and slides as pipeline stages, so they stay current with the results they show. The pages in this section cover each tool: LaTeX, with Overleaf and a round trip through Word, Quarto, and Office. This page covers what they share, and where they differ.

Citing project components

LaTeX, Quarto, and Markdown documents cite values from results files by their path in the project with the same ckvalue vocabulary: \ckvalue in LaTeX, the ckvalue shortcode in Quarto, and value markers in Markdown, with ckrefval for values quoted from references. LaTeX also includes figures, tables, and other LaTeX by path with \ckfigure, \cktable, and \ckinclude.

Dependencies

A LaTeX or Quarto document's stage depends on what it cites, found by reading it, so calkit run builds it after the stages that produce those, and again whenever one changes. A Word document's stage depends on the document and the inputs declared for it.

Environments

LaTeX and Quarto documents build in the project's environments, e.g., a TeX Live environment, or one providing Quarto, so every machine builds them the same way. Word documents are converted with Word on this machine. PowerPoint decks are exported with LibreOffice or PowerPoint, from this machine by default, or LibreOffice in a Docker environment.

Checks

calkit check references checks that the references a document cites are real, and calkit check repro -c numbers lists numbers typed into a document that look like results but have nothing recorded behind them.

Building documents

A document is built by the pipeline stage for it, with calkit run, in the stage's environment and with its options, so it's built again whenever what it shows changes. To build only one, e.g., report, run calkit run report. A LaTeX document can also be built on its own with calkit latex build, which builds it as its stage does unless an environment is given, and Word documents and PowerPoint decks with calkit office word-to-pdf and calkit export pptx. See the CLI reference for their options.