This paper proposes a procedure to execute external source codes from a %DIFDELCMD < \LaTeX\space %%%  document and include the calculation outputs in the resulting Portable Document Format (pdf) file automatically. It integrates programming tools into the %DIFDELCMD < \LaTeX\space %%%  writing tool to facilitate the production of reproducible research. In our proposed approach to a %DIFDELCMD < \LaTeX%%% -based scientific notebook the user can easily invoke any programming language or a command-line program when compiling the %DIFDELCMD < \LaTeX\space %%%  document, while using their favorite %DIFDELCMD < \LaTeX\space %%%  editor in the writing process. The required %DIFDELCMD < \LaTeX\space %%%  setup, a new  package, and the defined preamble are discussed in detail, and working examples using , , and 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.
This paper proposes a procedure to execute external source codes from a %DIFDELCMD < \LaTeX\space %%% LaTeX document and include the calculation outputs in the resulting Portable Document Format (pdf) file automatically. It integrates programming tools into the %DIFDELCMD < \LaTeX\space %%% LaTeX writing tool to facilitate the production of reproducible research. In our proposed approach to a %DIFDELCMD < \LaTeX%%% LaTeX-based scientific notebook the user can easily invoke any programming language or a command-line program when compiling the %DIFDELCMD < \LaTeX\space %%% LaTeX document, while using their favorite %DIFDELCMD < \LaTeX\space %%% LaTeX editor in the writing process. The required %DIFDELCMD < \LaTeX\space %%% 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.
A
LaTeX
A
LaTeX
R
-based
LaTeX-based
A
LaTeX
A
LaTeX
A
LaTeX
A
Python
D
,
R
, and
R, Julia, and MatLab