论文标题

乳胶可再现科学

Reproducible Science with LaTeX

论文作者

Bar, Haim, Wang, HaiYing

论文摘要

本文提出了一个从乳胶文档执行外部源代码的过程,并在自动的便携式文档格式(PDF)文件中包含计算输出。它将编程工具集成到乳胶写作工具中,以促进可再现研究的生产。在我们提出的基于乳胶的科学笔记本的方法中,用户可以在编译乳胶文档时轻松调用任何编程语言或命令行程序,同时在写作过程中使用他们喜欢的乳胶编辑器。详细讨论了所需的乳胶设置,一个新的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.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源