CTAN Comprehensive TeX Archive Network

Directory macros/latex/contrib/datax


The datax package

A 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


The calculated length was \(a=\datax{a}\).

Supported languages

Language Repo Maintainer
Julia Datax.jl David Gustavsson
MATLAB Datax.m David Gustavsson
Python Datax.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 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:


and version 1.3 or later is part of all distributions of 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 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 document.

Version1.2.0 2022-01-27
LicensesThe Project Public License 1.3
Copyright2020–2022 David Gustavsson
MaintainerDavid Gustavsson
Contained inTeX Live as datax
MiKTeX as datax
TopicsData import
Guest Book Sitemap Contact Contact Author