Hi List,
The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE:
\usemodule[tikz]
\usemodule[pgfplots] % PGFPlots module for graphs
\starttext
\starttikzpicture
\draw (0, 0) circle (3cm);
\stoptikzpicture
\stoptext
Without loading the pgfplots module, this draws a circle. With the \usemodule[pgfplots] line, this has the error below before doing anything.
I don’t know when this started happening, because I don’t use pgfplots often, but it was probably in the last couple months.
Thanks for all the great updates!
Gavin
tex error > tex error on line 521 in file pgfplots.code.tex: Use of \pgfplots@command@to@string@@ doesn't match its definition
<inserted text>
m
acro:colormap
<argument>
\pgfplots@colormap@catcodemagic
<macro> \pgfplots@command@to@string
#1#2->\expandafter \pgfplots@command@to@string@@ \meaning #1
\pgfplots@EOI {#2}
Hi List,
The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE:
\usemodule[tikz] \usemodule[pgfplots] % PGFPlots module for graphs
\starttext
\starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture
\stoptext
Without loading the pgfplots module, this draws a circle. With the \usemodule[pgfplots] line, this has the error below before doing anything.
I don’t know when this started happening, because I don’t use pgfplots often, but it was probably in the last couple months.
Thanks for all the great updates!
On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: these extra modules have bad loaders ... i'll send you better ones to test Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Fri, 30 Dec 2022, Hans Hagen via ntg-context wrote:
Hi List,
The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE:
\usemodule[tikz] \usemodule[pgfplots] % PGFPlots module for graphs
\starttext
\starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture
\stoptext
Without loading the pgfplots module, this draws a circle. With the \usemodule[pgfplots] line, this has the error below before doing anything.
I don’t know when this started happening, because I don’t use pgfplots often, but it was probably in the last couple months.
Thanks for all the great updates!
On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: these extra modules have bad loaders ... i'll send you better ones to test
pgfplots still appears to be broken in LMTX:
\usemodule[pgfplots]
\starttext
Hello
\stoptext
gives
tex error > tex error on line 521 in file pgfplots.code.tex: Use of \pgfplots@command@to@string@@ doesn't match its definition
<inserted text>
m
acro:colormap
<argument>
\pgfplots@colormap@catcodemagic
<macro> \pgfplots@command@to@string
#1#2->\expandafter \pgfplots@command@to@string@@ \meaning #1
\pgfplots@EOI {#2}
On 1/16/2023 3:21 AM, Aditya Mahajan via ntg-context wrote:
On Fri, 30 Dec 2022, Hans Hagen via ntg-context wrote:
Hi List,
The TikZ related module “pgfplots” is causing a fatal error in the latest ConTeXt. Here is a MWE:
\usemodule[tikz] \usemodule[pgfplots] % PGFPlots module for graphs
\starttext
\starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture
\stoptext
Without loading the pgfplots module, this draws a circle. With the \usemodule[pgfplots] line, this has the error below before doing anything.
I don’t know when this started happening, because I don’t use pgfplots often, but it was probably in the last couple months.
Thanks for all the great updates!
On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: these extra modules have bad loaders ... i'll send you better ones to test
pgfplots still appears to be broken in LMTX:
\usemodule[pgfplots]
\starttext Hello \stoptext
gives
tex error > tex error on line 521 in file pgfplots.code.tex: Use of \pgfplots@command@to@string@@ doesn't match its definition just load tikz first so that the right loader helpers are there
\usemodule[tikz] \usemodule[pgfplots] \starttext Hello \stoptext seems to work here loaders are in the distribution (it makes no sense to have 2000 dedicated loader modules for all that tikz/pgf provides, ) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
just load tikz first so that the right loader helpers are there
\usemodule[tikz] \usemodule[pgfplots]
\starttext Hello \stoptext
seems to work here
I did a fresh install of context and downloaded the latest version of pgf/tikz and pgfplots from ctan. Now, something is wrong with tikz: \usemodule[tikz] \starttext Hello \stoptext gives the attached log file. Not sure what changed on the tikz end. Thanks, Aditya
On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote:
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
just load tikz first so that the right loader helpers are there
\usemodule[tikz] \usemodule[pgfplots]
\starttext Hello \stoptext
seems to work here
I did a fresh install of context and downloaded the latest version of pgf/tikz and pgfplots from ctan. Now, something is wrong with tikz:
\usemodule[tikz]
\starttext Hello \stoptext
gives the attached log file. Not sure what changed on the tikz end.
That's most likely due to https://github.com/pgf-tikz/pgf/issues/1062 https://github.com/pgf-tikz/pgf/pull/1073 but this MWE \catcode`\@=11 \begingroup \lccode`\~=`\" \lowercase{\endgroup \def\pgfmath@catcodes{% \catcode`\==12 % \catcode`\,=12 % \catcode`\|=12 % \catcode`\&=12 % \let~\pgfmath@char@quote }}% {\pgfmath@catcodes "} \bye works in Knuth TeX, so it's likely not our fault. Cheers, Henri
Thanks, Aditya
On Mon, 16 Jan 2023, Henri Menke via ntg-context wrote:
On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote:
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
just load tikz first so that the right loader helpers are there
\usemodule[tikz] \usemodule[pgfplots]
\starttext Hello \stoptext
seems to work here
I did a fresh install of context and downloaded the latest version of pgf/tikz and pgfplots from ctan. Now, something is wrong with tikz:
\usemodule[tikz]
\starttext Hello \stoptext
gives the attached log file. Not sure what changed on the tikz end.
That's most likely due to
https://github.com/pgf-tikz/pgf/issues/1062 https://github.com/pgf-tikz/pgf/pull/1073
but this MWE
\catcode`\@=11
\begingroup \lccode`\~=`\" \lowercase{\endgroup \def\pgfmath@catcodes{% \catcode`\==12 % \catcode`\,=12 % \catcode`\|=12 % \catcode`\&=12 % \let~\pgfmath@char@quote }}%
{\pgfmath@catcodes "}
\bye
works in Knuth TeX, so it's likely not our fault.
I haven't looked pgf core in a while, but does it make sense to just redefine all the catcode jugglery in pgf as a catcodetable in m-tikz.mkxl? Thanks, Aditya
On 1/16/2023 6:23 PM, Aditya Mahajan via ntg-context wrote:
On Mon, 16 Jan 2023, Henri Menke via ntg-context wrote:
On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote:
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
just load tikz first so that the right loader helpers are there
\usemodule[tikz] \usemodule[pgfplots]
\starttext Hello \stoptext
seems to work here
I did a fresh install of context and downloaded the latest version of pgf/tikz and pgfplots from ctan. Now, something is wrong with tikz:
\usemodule[tikz]
\starttext Hello \stoptext
gives the attached log file. Not sure what changed on the tikz end.
That's most likely due to
https://github.com/pgf-tikz/pgf/issues/1062 https://github.com/pgf-tikz/pgf/pull/1073
but this MWE
\catcode`\@=11
\begingroup \lccode`\~=`\" \lowercase{\endgroup \def\pgfmath@catcodes{% \catcode`\==12 % \catcode`\,=12 % \catcode`\|=12 % \catcode`\&=12 % \let~\pgfmath@char@quote }}%
{\pgfmath@catcodes "}
\bye
works in Knuth TeX, so it's likely not our fault.
I haven't looked pgf core in a while, but does it make sense to just redefine all the catcode jugglery in pgf as a catcodetable in m-tikz.mkxl?
So what's with the double quote ... there is no gain in that as it is basically a tex catcode regime with a few differences; if you look in m-mkxl it's more some other things that can clash (they use some \meaning stuff and we need to temporary disable overload mode and disable some neat new features and such) make sure to get rid of the t-tikz modules Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
make sure to get rid of the t-tikz modules
Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip pgf by using 'unzip -x "**/t-*.*" so that no t- modules from tikz are unzipped but still get the following error on a simple hello world example: \usemodule[tikz] \starttext Hello \stoptext gives the attached log. Does the latest pgf/tikz run at your end? Aditya
On Mon, 16 Jan 2023, Aditya Mahajan via ntg-context wrote:
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
make sure to get rid of the t-tikz modules
Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip pgf by using 'unzip -x "**/t-*.*" so that no t- modules from tikz are unzipped but still get the following error on a simple hello world example:
\usemodule[tikz]
\starttext Hello \stoptext
gives the attached log.
In case anyone else needs a temp workaround until this is resolved: \usemodule[filter] \startbuffer[tikz-start] \usemodule[tikz] % Add font setup % Add tikz setup \starttext \startTEXpage \starttikzpicture \stopbuffer \startbuffer[tikz-stop] \stoptikzpicture \stopTEXpage \stoptext \stopbuffer \defineexternalfilter [tikzpicture] [ filter=context --luatex --once, cache=yes, output=\externalfilterbasefile.pdf, readcommand=\IncludeTikzPicture, bufferbefore=tikz-start, bufferafter=tikz-stop, ] \define[1]\IncludeTikzPicture{\externalfigure[#1]} \starttext Hello \starttikzpicture \draw (0,0) -- (1,1); \stoptikzpicture \stoptext
On Mon, 16 Jan 2023, Aditya Mahajan via ntg-context wrote:
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote:
make sure to get rid of the t-tikz modules
Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip pgf by using 'unzip -x "**/t-*.*" so that no t- modules from tikz are unzipped but still get the following error on a simple hello world example:
\usemodule[tikz]
\starttext Hello \stoptext
gives the attached log.
FWIW, the above example also fails on 2023.01.24 (with latest tikz from CTAN), with the same error message as in the last log. Could someone else please confirm if that is the case to rule out a misconfiguration/bug in my local install. Thanks, Aditya
participants (5)
-
Aditya Mahajan
-
Gavin
-
Hans Hagen
-
Hans Hagen
-
Henri Menke