We propose a Makefile for developing containerized $\LaTeX$ technical documents. The Makefile allows the author to execute the code that generates variables, tables and figures (results), which are then used during the $\LaTeX$ compilation, to produce either the draft (fast) or full (slow) version of the document. We also present various utilities that aid in automating the results generation and improve the reproducibility of the document. We release an open source repository of a template that uses the Makefile and demonstrate its use by developing this paper.
翻译:本文提出一种用于开发容器化$\LaTeX$技术文档的Makefile方案。该Makefile允许作者执行生成变量、表格和图表(结果)的代码,这些结果随后在$\LaTeX$编译过程中被使用,进而生成文档的草稿版(快速编译)或完整版(慢速编译)。我们还展示了多种自动化生成结果并增强文档可重复性的工具。我们发布了使用该Makefile的模板开源库,并通过撰写本文档演示其应用。