Re: [NTG-context] tikz + lmtx

2023-05-04 Thread Hans Hagen via ntg-context

On 5/4/2023 11:12 PM, Aditya Mahajan via ntg-context wrote:

Does that mean that these will be now included as part of the lmtx install?


no, i'm not going to bloat that one, but there will be a

mtxrun --script install-tikz


Not being a tikz user I have no preferences but we can add some test files to
the test suite if needed.


It may be good to add some basic files (e.g., the ones that I sent to you 
off-list) so that we may know if these packages break again.

yes, i already added thse

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
___


Re: [NTG-context] tikz + lmtx

2023-05-04 Thread Aditya Mahajan via ntg-context
On Thu, 4 May 2023, Hans Hagen via ntg-context wrote:

> On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote:
> > Hi all,
> > 
> > For a few months now, all features of tikz have not been working with LMTX.
> > After help from Hans and a bit of trial and error, I think that figured out
> > what was going wrong with the catcodes in m-tikz: Since the texcatcodes are
> > different from what tikz expects, the catcodes have to be set inside
> > \starttikzpicture (in addition to before the loading of tikz files, which
> > was already being done).
> > 
> > I am attaching the working m-tikz.mkxl file.
> > 
> > I have tested this on my course notes, which make extensive use of simple
> > tikz block diagrams and pgfplots graphs. Perhaps others who were having
> > issues with tikz could test if this fixes everything and, if so, we can add
> > this to the distribution.
> So, what is needed from tikz?
> 
> "graphics/pgf/base/pgf.tds.zip",
> "graphics/pgf/contrib/pgfplots.tds.zip",
> "graphics/pgf/contrib/circuitikz.tds.zip",
> 
> Is there more that should be installed as reasonable basic set? 

I believe that these are the most popular ones. 

> I made a script that does fetch/installs it (and also wipes latex / plain
> /useless stuff afterwards including some shell etc scripts as we don't want
> those either - security risk etc -).

Does that mean that these will be now included as part of the lmtx install?

> Not being a tikz user I have no preferences but we can add some test files to
> the test suite if needed.

It may be good to add some basic files (e.g., the ones that I sent to you 
off-list) so that we may know if these packages break again.

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
___


Re: [NTG-context] tikz + lmtx

2023-05-04 Thread Hans Hagen via ntg-context

On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote:

Hi all,

For a few months now, all features of tikz have not been working with LMTX. 
After help from Hans and a bit of trial and error, I think that figured out 
what was going wrong with the catcodes in m-tikz: Since the texcatcodes are 
different from what tikz expects, the catcodes have to be set inside 
\starttikzpicture (in addition to before the loading of tikz files, which was 
already being done).

I am attaching the working m-tikz.mkxl file.

I have tested this on my course notes, which make extensive use of simple tikz 
block diagrams and pgfplots graphs. Perhaps others who were having issues with 
tikz could test if this fixes everything and, if so, we can add this to the 
distribution.

So, what is needed from tikz?

"graphics/pgf/base/pgf.tds.zip",
"graphics/pgf/contrib/pgfplots.tds.zip",
"graphics/pgf/contrib/circuitikz.tds.zip",

Is there more that should be installed as reasonable basic set? I made a 
script that does fetch/installs it (and also wipes latex / plain 
/useless stuff afterwards including some shell etc scripts as we don't 
want those either - security risk etc -).


Not being a tikz user I have no preferences but we can add some test 
files to the test suite if needed.


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
___


Re: [NTG-context] tikz + lmtx

2023-05-01 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote:

> On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote:
> 
> > Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
> > ntg-context:
> > 
> > > Circuitikz still doesn't work. Even loading the module fails. 
> > 
> > It works for me on texlive 2023 with your new module file. 
> 
> Thanks for testing. I'll double check what was going wrong with my circuitikz 
> tests.

A 5 year old circuitikz module in $TEXMFHOME, which was interfering! Everything 
appears to be working now at my end as well.

@Hans, could we add the m-tikz.mkxl file that I sent to the distribution. 

Thanks,
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
___


Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Floris van Manen via ntg-context wrote:

> 
> 
> On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:
> > These are already part of the distribution. Just one caveat: you need to use
> > 
> > \usemodule[tikz]
> > \usemodule[pgfplots]
> 
> 
> when running the example from contextgarden:
> https://wiki.contextgarden.net/Pgfplot
> 
> \setupcolors[state=start]
> \usemodule[tikz]
> \usemodule[pgfplots]
> \starttext
> \starttikzpicture
> \startaxis[
> xmin=0,xmax=300,
> title=http://cryogenics.nist.gov/,
> xlabel=$T$ (K),
> ylabel=$(L-L_{293})/L_{293}$,
> legend style={at={(0.95,0.05)},anchor=south east},
> width=16cm ]
> \addplot[mark=none,color=red] plot file {sapphire.dat};
> \addlegendentry{sapphire}
> \addplot[mark=none,color=green] plot file {Be.dat};
> \addlegendentry{Be}
> \addplot[mark=none,color=blue] plot file {BeCu.dat};
> \addlegendentry{BeCu}
> \addplot[mark=none,color=cyan] plot file {SS304.dat};
> \addlegendentry{SS304}
> \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
> \addlegendentry{Al6061-T6}
> \addplot[mark=none,color=orange] plot file {nylon.dat};
> \addlegendentry{nylon}
> \stopaxis
> \stoptikzpicture
> \stoptext

Is it possible to create a standalone test that does not depend on a bunch of 
datafiles that need to be downloaded?

Thanks,
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
___


Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Floris van Manen via ntg-context



On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]



when running the example from contextgarden:
https://wiki.contextgarden.net/Pgfplot

\setupcolors[state=start]
\usemodule[tikz]
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis[
xmin=0,xmax=300,
title=http://cryogenics.nist.gov/,
xlabel=$T$ (K),
ylabel=$(L-L_{293})/L_{293}$,
legend style={at={(0.95,0.05)},anchor=south east},
width=16cm ]
\addplot[mark=none,color=red] plot file {sapphire.dat};
\addlegendentry{sapphire}
\addplot[mark=none,color=green] plot file {Be.dat};
\addlegendentry{Be}
\addplot[mark=none,color=blue] plot file {BeCu.dat};
\addlegendentry{BeCu}
\addplot[mark=none,color=cyan] plot file {SS304.dat};
\addlegendentry{SS304}
\addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
\addlegendentry{Al6061-T6}
\addplot[mark=none,color=orange] plot file {nylon.dat};
\addlegendentry{nylon}
\stopaxis
\stoptikzpicture
\stoptext




i get a fatal error:

resolvers   | globbing | confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'


resolvers   | formats | executing runner 'run luametatex format': 
/home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="./context 
24.tex" --socket --shell-escape 
--fmt=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.fmt 
--lua=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.lui 
--c:currentrun=1 --c:fulljobname="./context 24.tex" --c:input="./context 
24.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
--c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin"


resolvers   > globbing > confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'

system  >
system  > ConTeXt  ver: 2023.04.27 17:04 LMTX  fmt: 2023.4.28 
int: english/english

system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/vm/context/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/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './context 24', input './context 
24.tex', result './context 24'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './context 24.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/vm/context/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'

open source > level 3, order 4, name 'pgfutil-common.tex'
open source > level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 3, order 5, name 'pgfutil-common.tex'
open source > level 3, order 6, name 'pgfutil-context.def'
close source> level 3, order 6, name 'pgfutil-context.def'
open source > level 3, order 7, name 'pgfrcs.code.tex'
close source> level 3, order 7, name 'pgfrcs.code.tex'
open source > level 3, order 8, name 'pgfsys.code.tex'
open source > level 4, order 9, name 'pgfkeys.code.tex'
open source > level 5, order 10, name 'pgfkeysfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeysfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-pdftex.def

open source > level 4, order 12, name 'pgfsys-pdftex.def'
open source > level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 4, order 13, name 'pgfsys-pdftex.def'
open source > level 4, order 14, name 'context.tex'
setup   > error in line 12, namespace 'fontinstanceready', 
instance 'D', key 'no,'
open source > level 5, order 15, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'
open source > level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 5, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'

fonts   > checking > char 2 (U+00032) in font '' with id 0: missing
fonts   > checking > char 4 (U+00034) in font '' with id 0: missing
fonts   > checking > char . (U+0002E) in font '' with id 0: missing
fonts   > checking > char p (U+00070) in font '' with id 0: missing
fonts   > checking > char g (U+00067) in 

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote:

> Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
> ntg-context:
> 
> > Circuitikz still doesn't work. Even loading the module fails. 
> 
> It works for me on texlive 2023 with your new module file. 

Thanks for testing. I'll double check what was going wrong with my circuitikz 
tests.

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
___


Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Gavin wrote:

> Hi fellow Tik-Z users,
> 
> Tik-Z, including circuitikz, is working for me after adding two files from 
> Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX  fmt: 
> 2023.3.14). I do not know if these files are of any use with the current 
> versions, but I am quoting a list email from January (including the files) 
> just in case it helps anyone with the present problems.
> 
> Gavin

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]

Directly loading 

\usemodule[pgfplots]

will not work as the t-pgfplots module explicitly loads t-tikz, which does not 
work with LMTX.

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
___


Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Gavin via ntg-context
Hi fellow Tik-Z users,

Tik-Z, including circuitikz, is working for me after adding two files from Hans 
to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX  fmt: 
2023.3.14). I do not know if these files are of any use with the current 
versions, but I am quoting a list email from January (including the files) just 
in case it helps anyone with the present problems.

Gavin


> Hi Hans, Fabrice, and List,
> 
> Now it is working for me. I had installed the new upload. I also needed to 
> put the two new files from Hans’ earlier email (m-tikz-pgfplots.tex and 
> m-tikz-pgfplotstable.tex) in the right spot 
> (tex/texmf-context/tex/context/modules/mkxl) and run "mtxrun --generate”. I’m 
> not sure if I was also supposed to put the third file from the earlier email 
> in this spot also, but I didn’t, and it works.
> 
> I am still getting some new errors in specific files, but I will spend some 
> time tracking down the source of those errors before starting a new thread. 
> That might be a while, because all of the things I need for my current work 
> are now working.
> 
> I’ve re-attached those two files from the earlier email from Hans so anyone 
> reading this doesn’t need to hunt for them.
> 
> Thanks for the fixes!
> 
> Gavin
> 
> 


m-tikz-pgfplots.tex
Description: Binary data


m-tikz-pgfplotstable.tex
Description: Binary data

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


Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Ulrike Fischer via ntg-context
Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
ntg-context:

> Circuitikz still doesn't work. Even loading the module fails. 

It works for me on texlive 2023 with your new module file. 



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


Re: [NTG-context] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote:

> Hi all,
> 
> For a few months now, all features of tikz have not been working with LMTX. 
> After help from Hans and a bit of trial and error, I think that figured out 
> what was going wrong with the catcodes in m-tikz: Since the texcatcodes are 
> different from what tikz expects, the catcodes have to be set inside 
> \starttikzpicture (in addition to before the loading of tikz files, which was 
> already being done). 
> 
> I am attaching the working m-tikz.mkxl file. 
> 
> I have tested this on my course notes, which make extensive use of simple 
> tikz block diagrams and pgfplots graphs. Perhaps others who were having 
> issues with tikz could test if this fixes everything and, if so, we can add 
> this to the distribution.

Circuitikz still doesn't work. Even loading the module fails. Not sure why this 
is happening:

\usemodule[circuitikz]

gives:


tex error   > tex error on line 77 in file 
/opt/luametatex/texmf-context/tex/context/modules/mkxl/m-circuitikz.mkxl: 
Package pgfkeys Error: I do not know the key '/tikz/resistor', to which you 
passed 'american', and I am going to ignore it. Perhaps you misspelled it

 \pgfkeys@error

which is a bit strange as the key should have been '/tikz/circuitikz/resistor' 
rather than 'tikz/resistor'.

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
___