ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* tikz error upgrading to texlive version (artix)
@ 2023-03-30 18:52 Xavier B. via ntg-context
  2023-03-30 20:35 ` Xavier B. via ntg-context
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Xavier B. via ntg-context @ 2023-03-30 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Xavier B.

Hi,

I use artix linux (a fork of arch with systemd alternative init systems).
During the texlive package, I get this error:

return {
 ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
 ["lastcontext"]="\n<inserted text> \n \\inaccessible \n<to be read again> \n \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode `\\|=12 \\catcode `\\&=12 \\let \"\n                                                                           \\pgfmath@char@quote \n\\pgfmathparse ->\\begingroup \\pgfmath@catcodes \n                                   \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ \\fi \\pgfmath@parse@next \n<argument> \\pgfmathparse \n               {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else \\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n           \n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n                                     ",
 ["lastluaerror"]="?",
 ["lasttexerror"]="! Missing control sequence inserted",
 ["linenumber"]=926,
 ["offset"]=10,
}

I simply run context to this file:

\usemodule[tikz]

\starttext
{\bf a} \tikz (0,0) -- (1,0);
\stoptext

My version of context is:

[xan@coronari ~]$ context --version
mtx-context     | ConTeXt Process Management 1.04
mtx-context     |
mtx-context     | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2023.03.10 12:15
mtx-context     | main context file: /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context     | current version: 2023.03.10 12:15

My packages are:

$ pacman -Qs texlive
local/texlive-bibtexextra 2023.66579-1 (texlive-most)
    TeX Live - Additional BibTeX styles and bibliography databases
local/texlive-bin 2023.66539-1
    TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
    TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
    TeX Live - Packages for drawings graphics
local/texlive-publishers 2023.66550-1 (texlive-most)
    TeX Live - LaTeX classes and packages for specific publishers
local/texlive-science 2023.66461-1 (texlive-most)
    TeX Live - Typesetting for mathematics, natural and computer sciences



I also posted the message in Artix mailing list [https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]


Thanks in advance,
Xavier

PS: In arch there are many AUR packages for installing minimal latest version: 

https://aur.archlinux.org/packages/context-minimals-git
https://aur.archlinux.org/packages/context
https://aur.archlinux.org/packages/context-modules

Which one do you recomend to?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 18:52 tikz error upgrading to texlive version (artix) Xavier B. via ntg-context
@ 2023-03-30 20:35 ` Xavier B. via ntg-context
  2023-03-31 13:54   ` Xavier B. via ntg-context
  2023-03-30 20:57 ` Max Chernoff via ntg-context
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 16+ messages in thread
From: Xavier B. via ntg-context @ 2023-03-30 20:35 UTC (permalink / raw)
  To: Xavier B.; +Cc: Xavier B., mailing list for ConTeXt users

If I run the minimal context distro [https://wiki.contextgarden.net/Installation], I get this:

$ context a.tex 

resolvers       | formats | executing runner 'run luametatex format': /home/xan/bin/context-minimal/tex/texmf-linux-64/bin/luametatex --jobname="./a.tex" --fmt=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt --lua=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui  --c:currentrun=1 --c:fulljobname="./a.tex" --c:input="./a.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/home/xan/bin/context-minimal/tex/texmf-linux-64/bin"
job             > passes > version mismatch: 1.32 <> 1.33
system          > 
system          > ConTeXt  ver: 2023.03.20 17:07 LMTX  fmt: 2023.3.30  int: english/english
system          > 
system          > 'cont-new.mkxl' loaded
open source     > level 1, order 1, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > beware: some patches loaded from cont-new.mkiv
close source    > level 1, order 1, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system          > files > jobname './a', input './a.tex', result './a'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > level 1, order 2, name './a.tex'
modules         > 'tikz' is loaded
open source     > level 2, order 3, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context     | fatal error: return code: 1


So, the problem is not the package or the distro, it's something more basic which causes the error.


Thanks in advance,

On Thu, 30 Mar 2023 20:52:51 +0200
"Xavier B." <somenxavier@posteo.net> ha escrit:

> Hi,
> 
> I use artix linux (a fork of arch with systemd alternative init systems).
> During the texlive package, I get this error:
> 
> return {
>  ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
>  ["lastcontext"]="\n<inserted text> \n \\inaccessible \n<to be read again> \n \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode `\\|=12 \\catcode `\\&=12 \\let \"\n                                                                           \\pgfmath@char@quote \n\\pgfmathparse ->\\begingroup \\pgfmath@catcodes \n                                   \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ \\fi \\pgfmath@parse@next \n<argument> \\pgfmathparse \n               {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else \\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n           \n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n                                     ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Missing control sequence inserted",
>  ["linenumber"]=926,
>  ["offset"]=10,
> }
> 
> I simply run context to this file:
> 
> \usemodule[tikz]
> 
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext
> 
> My version of context is:
> 
> [xan@coronari ~]$ context --version
> mtx-context     | ConTeXt Process Management 1.04
> mtx-context     |
> mtx-context     | main context file: /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2023.03.10 12:15
> mtx-context     | main context file: /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context     | current version: 2023.03.10 12:15
> 
> My packages are:
> 
> $ pacman -Qs texlive
> local/texlive-bibtexextra 2023.66579-1 (texlive-most)
>     TeX Live - Additional BibTeX styles and bibliography databases
> local/texlive-bin 2023.66539-1
>     TeX Live binaries
> local/texlive-core 2023.66587-1 (texlive-most)
>     TeX Live core distribution
> local/texlive-pictures 2023.66549-1 (texlive-most)
>     TeX Live - Packages for drawings graphics
> local/texlive-publishers 2023.66550-1 (texlive-most)
>     TeX Live - LaTeX classes and packages for specific publishers
> local/texlive-science 2023.66461-1 (texlive-most)
>     TeX Live - Typesetting for mathematics, natural and computer sciences
> 
> 
> 
> I also posted the message in Artix mailing list [https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]
> 
> 
> Thanks in advance,
> Xavier
> 
> PS: In arch there are many AUR packages for installing minimal latest version: 
> 
> https://aur.archlinux.org/packages/context-minimals-git
> https://aur.archlinux.org/packages/context
> https://aur.archlinux.org/packages/context-modules
> 
> Which one do you recomend to?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 18:52 tikz error upgrading to texlive version (artix) Xavier B. via ntg-context
  2023-03-30 20:35 ` Xavier B. via ntg-context
@ 2023-03-30 20:57 ` Max Chernoff via ntg-context
  2023-03-30 21:56   ` Xavier B. via ntg-context
  2023-03-31  8:05 ` Hans Hagen via ntg-context
  2023-04-03  0:42 ` George N. White III via ntg-context
  3 siblings, 1 reply; 16+ messages in thread
From: Max Chernoff via ntg-context @ 2023-03-30 20:57 UTC (permalink / raw)
  To: ntg-context; +Cc: Max Chernoff, somenxavier

Hi Xavier,
> During the texlive package, I get this error:

> I simply run context to this file:
> 
> \usemodule[tikz]
> 
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext

> So, the problem is not the package or the distro, it's something more
> basic which causes the error.

Someone else reported this issue to the TikZ GitHub:

   https://github.com/pgf-tikz/pgf/issues/1248
   
so it's definitely not just you. There's also a suggested (temporary)
solution there. For a more permanent solution, someone will need to patch
the m-tikz.mkXX files distributed with ConTeXt.

-- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 20:57 ` Max Chernoff via ntg-context
@ 2023-03-30 21:56   ` Xavier B. via ntg-context
  2023-03-31  0:42     ` Aditya Mahajan via ntg-context
                       ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Xavier B. via ntg-context @ 2023-03-30 21:56 UTC (permalink / raw)
  To: Max Chernoff; +Cc: Xavier B., ntg-context

Thanks, Max, for finding the problem. It is related to two more bugs:
https://github.com/pgf-tikz/pgf/issues/990
and 
https://github.com/pgf-tikz/pgf/issues/958

Perhaps Hans or other people could help tikz staff to do the pending and definitive solution.
It's annoying to have to put workarrounds in production documents.

There is just a glad mkiv user ;-)

Thanks another way,
Xavier

On Thu, 30 Mar 2023 14:57:06 -0600
Max Chernoff <mseven@telus.net> ha escrit:

> Hi Xavier,
> > During the texlive package, I get this error:
> 
> > I simply run context to this file:
> > 
> > \usemodule[tikz]
> > 
> > \starttext
> > {\bf a} \tikz (0,0) -- (1,0);
> > \stoptext
> 
> > So, the problem is not the package or the distro, it's something more
> > basic which causes the error.
> 
> Someone else reported this issue to the TikZ GitHub:
> 
>    https://github.com/pgf-tikz/pgf/issues/1248
>    
> so it's definitely not just you. There's also a suggested (temporary)
> solution there. For a more permanent solution, someone will need to patch
> the m-tikz.mkXX files distributed with ConTeXt.
> 
> -- Max
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 21:56   ` Xavier B. via ntg-context
@ 2023-03-31  0:42     ` Aditya Mahajan via ntg-context
  2023-03-31  7:52       ` Hans Hagen via ntg-context
  2023-03-31  8:10     ` Hans Hagen via ntg-context
  2023-04-02 11:00     ` Xavier B. via ntg-context
  2 siblings, 1 reply; 16+ messages in thread
From: Aditya Mahajan via ntg-context @ 2023-03-31  0:42 UTC (permalink / raw)
  To: Xavier B. via ntg-context; +Cc: Aditya Mahajan

On Thu, 30 Mar 2023, Xavier B. via ntg-context wrote:

> Thanks, Max, for finding the problem. It is related to two more bugs:
> https://github.com/pgf-tikz/pgf/issues/990
> and 
> https://github.com/pgf-tikz/pgf/issues/958
> 
> Perhaps Hans or other people could help tikz staff to do the pending and definitive solution.
> It's annoying to have to put workarrounds in production documents.
> 
> There is just a glad mkiv user ;-)

I reported that tikz is not working a few months ago, but after a few back and forth with Hans, could not get it to work. At that time, it appeared that I was the only have having issues, so I thought that I was making a mistake in how I was installing the package. 

I have reverted to using mkiv for my course notes, because I heavily use pgfplots and that is not working in LMTX. (I was also using some nice new features of metafun, and have had to resort to compiling them externally using LMTX via the filter module and compiling the main doc with MkIV).

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-31  0:42     ` Aditya Mahajan via ntg-context
@ 2023-03-31  7:52       ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen via ntg-context @ 2023-03-31  7:52 UTC (permalink / raw)
  To: Aditya Mahajan via ntg-context; +Cc: Hans Hagen

On 3/31/2023 2:42 AM, Aditya Mahajan via ntg-context wrote:
> On Thu, 30 Mar 2023, Xavier B. via ntg-context wrote:
> 
>> Thanks, Max, for finding the problem. It is related to two more bugs:
>> https://github.com/pgf-tikz/pgf/issues/990
>> and
>> https://github.com/pgf-tikz/pgf/issues/958
>>
>> Perhaps Hans or other people could help tikz staff to do the pending and definitive solution.
>> It's annoying to have to put workarrounds in production documents.
>>
>> There is just a glad mkiv user ;-)
> 
> I reported that tikz is not working a few months ago, but after a few back and forth with Hans, could not get it to work. At that time, it appeared that I was the only have having issues, so I thought that I was making a mistake in how I was installing the package.
> 
> I have reverted to using mkiv for my course notes, because I heavily use pgfplots and that is not working in LMTX. (I was also using some nice new features of metafun, and have had to resort to compiling them externally using LMTX via the filter module and compiling the main doc with MkIV).
afaik tikz should work ok, so can you make a test file?

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 18:52 tikz error upgrading to texlive version (artix) Xavier B. via ntg-context
  2023-03-30 20:35 ` Xavier B. via ntg-context
  2023-03-30 20:57 ` Max Chernoff via ntg-context
@ 2023-03-31  8:05 ` Hans Hagen via ntg-context
  2023-04-03  0:42 ` George N. White III via ntg-context
  3 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen via ntg-context @ 2023-03-31  8:05 UTC (permalink / raw)
  To: Xavier B. via ntg-context; +Cc: Hans Hagen

On 3/30/2023 8:52 PM, Xavier B. via ntg-context wrote:
> Hi,
> 
> I use artix linux (a fork of arch with systemd alternative init systems).
> During the texlive package, I get this error:
> 
> return {
>   ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
>   ["lastcontext"]="\n<inserted text> \n \\inaccessible \n<to be read again> \n \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode `\\|=12 \\catcode `\\&=12 \\let \"\n                                                                           \\pgfmath@char@quote \n\\pgfmathparse ->\\begingroup \\pgfmath@catcodes \n                                   \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ \\fi \\pgfmath@parse@next \n<argument> \\pgfmathparse \n               {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else \\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n           \n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n                                     ",
>   ["lastluaerror"]="?",
>   ["lasttexerror"]="! Missing control sequence inserted",
>   ["linenumber"]=926,
>   ["offset"]=10,
> }
> 
> I simply run context to this file:
> 
> \usemodule[tikz]
> 
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext
i have little clue about tikz but shouldn't that be something

     \tikz \draw (0,0) -- (1,0);

at least that gives a line here.

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 21:56   ` Xavier B. via ntg-context
  2023-03-31  0:42     ` Aditya Mahajan via ntg-context
@ 2023-03-31  8:10     ` Hans Hagen via ntg-context
  2023-03-31 16:43       ` Aditya Mahajan via ntg-context
  2023-03-31 18:16       ` Ulrike Fischer via ntg-context
  2023-04-02 11:00     ` Xavier B. via ntg-context
  2 siblings, 2 replies; 16+ messages in thread
From: Hans Hagen via ntg-context @ 2023-03-31  8:10 UTC (permalink / raw)
  To: Xavier B. via ntg-context; +Cc: Hans Hagen

On 3/30/2023 11:56 PM, Xavier B. via ntg-context wrote:
> Thanks, Max, for finding the problem. It is related to two more bugs:
> https://github.com/pgf-tikz/pgf/issues/990
> and
> https://github.com/pgf-tikz/pgf/issues/958
> 
> Perhaps Hans or other people could help tikz staff to do the pending and definitive solution.
> It's annoying to have to put workarrounds in production documents.
> 
> There is just a glad mkiv user ;-)
\usemodule[tikz]

\starttext
   Hello World.
\stoptext

works ok here

\usemodule[tikz]

\starttext
\starttikzpicture
     \node [left color=red, right color=yellow] {Hello};
\stoptikzpicture
\stoptext

fails on

\setbox \pgfutil@tempboxa =\hbox dir
     TLT to\pgfmathresult pt{\vbox

because we don't have 'dir TLT' in luametatex (and more engines don't so 
i would expect tikz to have some abstraction for that)

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 20:35 ` Xavier B. via ntg-context
@ 2023-03-31 13:54   ` Xavier B. via ntg-context
  0 siblings, 0 replies; 16+ messages in thread
From: Xavier B. via ntg-context @ 2023-03-31 13:54 UTC (permalink / raw)
  To: Xavier B.; +Cc: Xavier B., mailing list for ConTeXt users


> > I reported that tikz is not working a few months ago, but after a few back and forth with Hans, could not get it to work. At that time, it appeared that I was the only have having issues, so I thought that I was making a mistake in how I was installing the package.
> > 
> > I have reverted to using mkiv for my course notes, because I heavily use pgfplots and that is not working in LMTX. (I was also using some nice new features of metafun, and have had to resort to compiling them externally using LMTX via the filter module and compiling the main doc with MkIV).
> afaik tikz should work ok, so can you make a test file?
> 
> Hans


Perhaps this is a good test. It's a complete example:

\setupcolors[state=start]
\definecolor[darkgreen][g=.5]
\usemodule[tikz]         

\starttext

\starttikzpicture[      scale=3,line cap=round
                        axes/.style=,         
                        important line/.style={very thick},
                        information text/.style={rounded corners,fill=red!10,inner sep=1ex} ]

        \draw[help lines,step=0.5cm] (-1.4,-1.4) grid (1.4,1.4);
        \draw (0,0) circle (1cm);                               
                \draw[->] (-1.5,0) -- (1.5,0) node[right] {$x$} coordinate(x axis);
                \draw[->] (0,-1.5) -- (0,1.5) node[above] {$y$} coordinate(y axis);
                \foreach \x/\xtext in {-1, -.5/-\frac{1}{2}, 1}                    
                        \draw[xshift=\x cm] (0pt,1pt) -- (0pt,-1pt)                
                                node[below,fill=white] {$\xtext$};
                \foreach \y/\ytext in {-1, -.5/-\frac{1}{2}, .5/\frac{1}{2}, 1}
                        \draw[yshift=\y cm] (1pt,0pt) -- (-1pt,0pt)
                                node[left,fill=white] {$\ytext$};
        \filldraw[fill=green!20,draw=green!50!black] (0,0) -- (3mm,0pt) arc(0:30:3mm);
        \draw (15:2mm) node[green!50!black] {$\alpha$};
        \draw[important line,red]
                (30:1cm) -- node[left=1pt,fill=white] {$\sin \alpha$} (30:1cm |- x axis);
        \draw[important line,blue]
                (30:1cm |- x axis) -- node[below=2pt,fill=white] {$\cos \alpha$} (0,0);
        \draw[important line,orange!80!black] (1,0) -- node[right=1pt,fill=white] {
                $\displaystyle \tan \alpha \black =
                \frac{{\red \sin \alpha}}{\blue \cos \alpha}$}
                (intersection of 0,0--30:1cm and 1,0--1,1) coordinate (t);
        \draw (0,0) -- (t);
        \draw[xshift=1.85cm]
                node[right,text width=6cm,information text]
                {
                        The {\darkgreen angle $\alpha$} is $30^\circ$ in the
                        example ($\pi/6$ in radians). The {\red sine of
                        $\alpha$}, which is the height of the red line, is
                        \startformula
                        {\red \sin \alpha} = 1/2.
                        \stopformula
                        By the Theorem of Pythagoras ...
                };
\stoptikzpicture

\stoptext


Taking from tikz manual [https://wiki.contextgarden.net/TikZ]

Xavier

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-31  8:10     ` Hans Hagen via ntg-context
@ 2023-03-31 16:43       ` Aditya Mahajan via ntg-context
  2023-03-31 19:50         ` Hans Hagen via ntg-context
  2023-03-31 18:16       ` Ulrike Fischer via ntg-context
  1 sibling, 1 reply; 16+ messages in thread
From: Aditya Mahajan via ntg-context @ 2023-03-31 16:43 UTC (permalink / raw)
  To: Hans Hagen via ntg-context; +Cc: Aditya Mahajan

On Fri, 31 Mar 2023, Hans Hagen via ntg-context wrote:

> On 3/30/2023 11:56 PM, Xavier B. via ntg-context wrote:
> > Thanks, Max, for finding the problem. It is related to two more bugs:
> > https://github.com/pgf-tikz/pgf/issues/990
> > and
> > https://github.com/pgf-tikz/pgf/issues/958
> > 
> > Perhaps Hans or other people could help tikz staff to do the pending and
> > definitive solution.
> > It's annoying to have to put workarrounds in production documents.
> > 
> > There is just a glad mkiv user ;-)
> \usemodule[tikz]
> 
> \starttext
>   Hello World.
> \stoptext
> 
> works ok here

Last time I tested, a simple \starttikzpicture \draw (0,0)--(1,0); \stoptikzpicture was failing. I'll try again with the latest version of LMTX + TikZ. 

Hans, are you using the latest version of tikz from ctan? Some of these issues are due to recent changes made in tikz. 

Aditya
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-31  8:10     ` Hans Hagen via ntg-context
  2023-03-31 16:43       ` Aditya Mahajan via ntg-context
@ 2023-03-31 18:16       ` Ulrike Fischer via ntg-context
  2023-03-31 19:52         ` Hans Hagen via ntg-context
  1 sibling, 1 reply; 16+ messages in thread
From: Ulrike Fischer via ntg-context @ 2023-03-31 18:16 UTC (permalink / raw)
  To: ntg-context; +Cc: Ulrike Fischer

Am Fri, 31 Mar 2023 10:10:43 +0200 schrieb Hans Hagen via
ntg-context:

> \usemodule[tikz]
> 
> \starttext
>    Hello World.
> \stoptext
> works ok here


It fails for me in texlive 2023. 

I don't know who changed what here, but it looks like a catcode
problem. context loads tikz files in m-tikz.mkxl with
\tikzinputfiles, and that calls \setcatcodetable\texcatcodes. After
that ~ has catcode 12 and that breaks the \let~\pdfmath@char@quote
in the pgfmathparser.code.tex file 

\begingroup
  \lccode`\~=`\"
  \lowercase{\endgroup
    \def\pgfmath@catcodes{%
      \catcode`\==12 %
      \catcode`\,=12 %
      \catcode`\|=12 %
      \catcode`\&=12 %
      \let~\pgfmath@char@quote
    }}%



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-31 16:43       ` Aditya Mahajan via ntg-context
@ 2023-03-31 19:50         ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen via ntg-context @ 2023-03-31 19:50 UTC (permalink / raw)
  To: Aditya Mahajan via ntg-context; +Cc: Hans Hagen

On 3/31/2023 6:43 PM, Aditya Mahajan via ntg-context wrote:
> On Fri, 31 Mar 2023, Hans Hagen via ntg-context wrote:
> 
>> On 3/30/2023 11:56 PM, Xavier B. via ntg-context wrote:
>>> Thanks, Max, for finding the problem. It is related to two more bugs:
>>> https://github.com/pgf-tikz/pgf/issues/990
>>> and
>>> https://github.com/pgf-tikz/pgf/issues/958
>>>
>>> Perhaps Hans or other people could help tikz staff to do the pending and
>>> definitive solution.
>>> It's annoying to have to put workarrounds in production documents.
>>>
>>> There is just a glad mkiv user ;-)
>> \usemodule[tikz]
>>
>> \starttext
>>    Hello World.
>> \stoptext
>>
>> works ok here
> 
> Last time I tested, a simple \starttikzpicture \draw (0,0)--(1,0); \stoptikzpicture was failing. I'll try again with the latest version of LMTX + TikZ.
> 
> Hans, are you using the latest version of tikz from ctan? Some of these issues are due to recent changes made in tikz.
What should i take ... is there one has-it-all zip there?

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-31 18:16       ` Ulrike Fischer via ntg-context
@ 2023-03-31 19:52         ` Hans Hagen via ntg-context
  0 siblings, 0 replies; 16+ messages in thread
From: Hans Hagen via ntg-context @ 2023-03-31 19:52 UTC (permalink / raw)
  To: ntg-context; +Cc: Hans Hagen

On 3/31/2023 8:16 PM, Ulrike Fischer via ntg-context wrote:
> Am Fri, 31 Mar 2023 10:10:43 +0200 schrieb Hans Hagen via
> ntg-context:
> 
>> \usemodule[tikz]
>>
>> \starttext
>>     Hello World.
>> \stoptext
>> works ok here
> 
> 
> It fails for me in texlive 2023.

works here

> I don't know who changed what here, but it looks like a catcode

something in tikz i guess

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 21:56   ` Xavier B. via ntg-context
  2023-03-31  0:42     ` Aditya Mahajan via ntg-context
  2023-03-31  8:10     ` Hans Hagen via ntg-context
@ 2023-04-02 11:00     ` Xavier B. via ntg-context
  2023-04-02 22:37       ` Max Chernoff via ntg-context
  2 siblings, 1 reply; 16+ messages in thread
From: Xavier B. via ntg-context @ 2023-04-02 11:00 UTC (permalink / raw)
  To: Xavier B.; +Cc: Xavier B., Max Chernoff, ntg-context

Max, when I use context minimals, I get:

modules         > 'pgfrcs' is not found
modules         > 'pgfmat' is not found
modules         > 'tikz' is loaded
open source     > level 3, order 4, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context     | fatal error: return code: 1
make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1
[xan@coronari apunts-espa]$


but when I run texlive, no errors shown:

$ pacman -Qs texlive
local/texlive-bin 2023.66539-1
    TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
    TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
    TeX Live - Packages for drawings graphics
local/texlive-science 2023.66461-1 (texlive-most)
    TeX Live - Typesetting for mathematics, natural and computer sciences


Any hints?
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-04-02 11:00     ` Xavier B. via ntg-context
@ 2023-04-02 22:37       ` Max Chernoff via ntg-context
  0 siblings, 0 replies; 16+ messages in thread
From: Max Chernoff via ntg-context @ 2023-04-02 22:37 UTC (permalink / raw)
  To: Xavier B.; +Cc: Max Chernoff, ntg-context

Hi Xavier,

On Sun, 2023-04-02 at 11:00 +0000, Xavier B. wrote:
> Max, when I use context minimals, I get:
> 
> modules         > 'pgfrcs' is not found
> modules         > 'pgfmat' is not found
> modules         > 'tikz' is loaded
> open source     > level 3, order 4, name '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
> runtime error : input file 'pgfutil-common.tex' is not found, quitting
> mtx-context     | fatal error: return code: 1
> make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1
> [xan@coronari apunts-espa]$
> 
> 
> but when I run texlive, no errors shown:
> 
> $ pacman -Qs texlive
> local/texlive-bin 2023.66539-1
>     TeX Live binaries
> local/texlive-core 2023.66587-1 (texlive-most)
>     TeX Live core distribution
> local/texlive-pictures 2023.66549-1 (texlive-most)
>     TeX Live - Packages for drawings graphics
> local/texlive-science 2023.66461-1 (texlive-most)
>     TeX Live - Typesetting for mathematics, natural and computer sciences
> 
> 
> Any hints?

The ConTeXt distribution doesn't contain any packages/modules by
default, so you'll need to install TikZ manually. I usually use the
script listed here:

   https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
   
But you could also install manually using the .zip file here:

   https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip
   
-- Max

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

* Re: tikz error upgrading to texlive version (artix)
  2023-03-30 18:52 tikz error upgrading to texlive version (artix) Xavier B. via ntg-context
                   ` (2 preceding siblings ...)
  2023-03-31  8:05 ` Hans Hagen via ntg-context
@ 2023-04-03  0:42 ` George N. White III via ntg-context
  3 siblings, 0 replies; 16+ messages in thread
From: George N. White III via ntg-context @ 2023-04-03  0:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: George N. White III


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

On Thu, Mar 30, 2023 at 4:01 PM Xavier B. via ntg-context <
ntg-context@ntg.nl> wrote:

> Hi,
>
> I use artix linux (a fork of arch with systemd alternative init systems).
>

I get the same error for TL2023 in Windows, with additional output:

<empty file>
Please don't say '\def cs{...}', say '\def\cs{...}'. I've inserted an
inaccessible control sequence so that your definition will be completed
without
mixing me up too badly.
mtx-context     | fatal error: return code: 1


> During the texlive package, I get this error:
>
> return {
>
>  ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
>  ["lastcontext"]="\n<inserted text> \n \\inaccessible \n<to be read again>
> \n \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode
> `\\|=12 \\catcode `\\&=12 \\let \"\n
>                                    \\pgfmath@char@quote \n\\pgfmathparse
> ->\\begingroup \\pgfmath@catcodes \n
>  \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next
> =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next
> =\\pgfmathparse@ \\fi \\pgfmath@parse@next \n<argument> \\pgfmathparse
> \n               {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x
> \\pgfmathresult mu\\relax \\else \\pgf@x \\pgfmathresult pt\\relax \\fi
> \n\\pgfmath@next #1#2->#2\n           \n...\nl.926
> \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n                                     ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Missing control sequence inserted",
>  ["linenumber"]=926,
>  ["offset"]=10,
> }
>
> I simply run context to this file:
>
> \usemodule[tikz]
>
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext
>
>
pgfcorepoints.code.tex hasn't changed from TeXLive 2022.

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

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

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : https://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2023-04-03  0:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-30 18:52 tikz error upgrading to texlive version (artix) Xavier B. via ntg-context
2023-03-30 20:35 ` Xavier B. via ntg-context
2023-03-31 13:54   ` Xavier B. via ntg-context
2023-03-30 20:57 ` Max Chernoff via ntg-context
2023-03-30 21:56   ` Xavier B. via ntg-context
2023-03-31  0:42     ` Aditya Mahajan via ntg-context
2023-03-31  7:52       ` Hans Hagen via ntg-context
2023-03-31  8:10     ` Hans Hagen via ntg-context
2023-03-31 16:43       ` Aditya Mahajan via ntg-context
2023-03-31 19:50         ` Hans Hagen via ntg-context
2023-03-31 18:16       ` Ulrike Fischer via ntg-context
2023-03-31 19:52         ` Hans Hagen via ntg-context
2023-04-02 11:00     ` Xavier B. via ntg-context
2023-04-02 22:37       ` Max Chernoff via ntg-context
2023-03-31  8:05 ` Hans Hagen via ntg-context
2023-04-03  0:42 ` George N. White III via ntg-context

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).