That has already been reported on the pgfplots bugtracker https://github.com/pgf-tikz/pgfplots/issues/350 and here on the mailing list https://mailman.ntg.nl/pipermail/ntg-context/2020/097514.html Here I quote Aditya's workaround: I have no clue what pgfplotsbinary.data.code.tex does, but simply bypassing that works for the simple example above. Simply create an empty file with the name pgfplotsbinary.data.code.tex in your current directory and compile your example. Note that if your code uses any of the features which are provided by this file (and I am not sure what they are), then it will fail. But at least this "fix" works for the simple example above. On 24/04/20, 20:23, Jairo A. del Rio wrote:
I'm testing LMTX with documents I've written for ConTeXt MKIV. I've copied the third party module folder from ConTeXt and some of them work like a charm (t-vim, TikZ, etc.). Nonetheless, I find PGFPlots just doesn't work. I've tried with the minimal example:
\usemodule[pgfplots] \starttext Hola \stoptext
and LMTX gives the following error message (omitting spaces):
tex error > tex error on line 42 in file pgfplotsbinary.data.code.tex: ! Undefined control sequence l.42 \catcode`\ =11^^I\expandafter\xdef\csname pgfp@bin@
\the\counter^^I\endcsname{^^20}\endgroup\advance\counter by1 lua error: ? <empty file> The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined.
Why does it happen and how to make the code work?
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________