ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* PGFPlots does not work with LMTX
@ 2020-04-25  1:23 Jairo A. del Rio
  2020-04-25  5:16 ` Henri Menke
  0 siblings, 1 reply; 2+ messages in thread
From: Jairo A. del Rio @ 2020-04-25  1:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 829 bytes --]

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?

[-- Attachment #1.2: Type: text/html, Size: 1149 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PGFPlots does not work with LMTX
  2020-04-25  1:23 PGFPlots does not work with LMTX Jairo A. del Rio
@ 2020-04-25  5:16 ` Henri Menke
  0 siblings, 0 replies; 2+ messages in thread
From: Henri Menke @ 2020-04-25  5:16 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
> ___________________________________________________________________________________

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-04-25  5:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-25  1:23 PGFPlots does not work with LMTX Jairo A. del Rio
2020-04-25  5:16 ` Henri Menke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).