CTAN Comprehensive TeX Archive Network

runcode – Execute foreign source code and embed the result in the pdf file

This package executes programming source codes (including all command line tools) from within and embeds the output in the resulting .pdf file. Many programming languages can be easily used and any command-line executable can be invoked when preparing the .pdf file from a .tex file.

It is however recommended to use this package in server-mode together with the Python talk2stat package. Currently, this server-mode supports Julia, MatLab, Python, and R. More languages will be added. For more details and usage examples, refer to the package’s github repository.

Version2.3 2024-01-12
LicensesThe Project Public License 1.3c
Copyright2020–2024 Haim Bar and HaiYing Wang
MaintainerHaim Bar
HaiYing Wang
Contained inTeX Live as runcode
MiKTeX as runcode
Exec foreign

Download the contents of this package in one zip archive (411.3k).

Community Comments



Here you can see a respective diagram in newer browsers.


Package Links

Guest Book Sitemap Contact Contact Author