Directory macros/latex/contrib/datax
The datax package
A LaTeX package to insert data from a script in a document. Interacting plugins available at Github, Datax-package.
Example usage
Julia script:
using LaTeXDatax, Unitful a = 25u"m" b = 13 c = "Literal string" @datax a b c
LaTeX document
\documentclass{article} \usepackage{datax} \usepackage{siunitx} \begin{document} The calculated length was \(a=\datax{a}\). \end{document}
Supported languages
Language | Repo | Maintainer |
---|---|---|
Julia | LaTeXDatax.jl | David Gustavsson |
MATLAB | LaTeXDatax.m | David Gustavsson |
Python | LaTeXDatax.py | David Gustavsson |
If your language isn't listed above, check the super-repo. Extending it to your language of choice should be fairly simple, just make it so your script can write \pgfkeyssetvalue{/datax/<tag>}{<value>}
to a file. If you end up writing a plugin for a language, or if you want to request one, please make a feature request or send me an e-mail.
Copyright and license
Copyright 2020 − 2022 David Gustavsson (david.e.gustavsson@gmail.com)
This package may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3 of this license or (at your option) any later version. The latest version of this license is in:
http://www.latex-project.org/lppl.txt
and version 1.3 or later is part of all distributions of LaTeX version 2005/12/01 or later.
Download the contents of this package in one zip archive (196.8k).
datax – Import individual data from script files
This LaTeX package uses pgfkeys to retrieve individual data points generated in some script. Analogous to how one might generate graphics in a script and import those graphics into a LaTeX document.
Package | datax |
Repository | https://github.com/Datax-package/Datax.sty |
Version | 1.2.0 2022-01-27 |
Licenses | The LaTeX Project Public License 1.3 |
Copyright | 2020–2022 David Gustavsson |
Maintainer | David Gustavsson |
Contained in | TeX Live as datax MiKTeX as datax |
Topics | Data import |