arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2010.01482cs.SEcs.CLstat.CO
收藏

利用LaTeX进行可再生科学研究

Reproducible Science with LaTeX

University of Connecticut(康涅狄格大学)

Haim Bar, HaiYing Wang

摘要:

本文提出了一个程序,执行外部源代码从LaTeX文档,并包括计算输出的结果可移植文档格式(PDF)文件自动。它将编程工具集成到LaTeX编写工具中,以促进可重复研究的生产。在我们提出的基于LaTeX的科学笔记本的方法中,用户可以在编译LaTeX文档时轻松调用任何程序设计语言或命令行程序,同时在编写过程中使用他们最喜欢的LaTeX编辑器。详细讨论了所需的LaTeX设置,新的Python包和定义的前导码,并提供了使用R,Julia和MatLab重现现有研究的工作示例来说明所提出的过程。我们还演示了如何通过在编译文档时调用shell脚本来在文档中包含系统设置信息。

英文摘要:

This paper proposes a procedure to execute external source codes from a LaTeX document and include the calculation outputs in the resulting Portable Document Format (pdf) file automatically. It integrates programming tools into the LaTeX writing tool to facilitate the production of reproducible research. In our proposed approach to a LaTeX-based scientific notebook the user can easily invoke any programming language or a command-line program when compiling the LaTeX document, while using their favorite LaTeX editor in the writing process. The required LaTeX setup, a new Python package, and the defined preamble are discussed in detail, and working examples using R, Julia, and MatLab to reproduce existing research are provided to illustrate the proposed procedure. We also demonstrate how to include system setting information in a paper by invoking shell scripts when compiling the document.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑