![](https://secure.gravatar.com/avatar/8006dd17a814c6e0d2d3919c2465cbda.jpg?s=120&d=mm&r=g)
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How to make all the files in the distribution known to the compiler?
Note that there is currently no proper support for LMTX in PGF/TikZ. https://github.com/pgf-tikz/pgf/issues/990 Cheers, Henri
Thanks,
Alain
%% ConTeXt file
\usemodule[tikz] \starttext We are working on \starttikzpicture \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- (0,1.5); \stoptikzpicture. \stoptext _____________________________________________________________________ ______________ 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 _____________________________________________________________________ ______________
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote:
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How to make all the files in the distribution known to the compiler?
Note that there is currently no proper support for LMTX in PGF/TikZ.
Interesting... it seems that only a few features don't work. I regularly use pgfplots, and haven't noticed any compatibility issues in my examples. What will be needed to add a LMTX "driver" for TikZ? Porting pgfsys-luatex.def to pgfsys-luametatex.def? Or is something else also needed? Aditya
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 9/30/2021 8:52 PM, Aditya Mahajan via ntg-context wrote:
On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote:
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How to make all the files in the distribution known to the compiler?
Note that there is currently no proper support for LMTX in PGF/TikZ.
Interesting... it seems that only a few features don't work. I regularly use pgfplots, and haven't noticed any compatibility issues in my examples.
What will be needed to add a LMTX "driver" for TikZ? Porting pgfsys-luatex.def to pgfsys-luametatex.def? Or is something else also needed? I don't know. If you send me the examplex that don't work I can check it. I suppose that it there is a well defined interface layer we can
Nowdays exagerating remarks like "lots of ..." just like "many buge ..." and "completely broken ..." and some more make me put something at the bottom of my list cq. dismiss. provide the connection and maintain that in the context distribution. And we can also just decide that some features are not supported (for instance because they interfere with context resource management). 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/8006dd17a814c6e0d2d3919c2465cbda.jpg?s=120&d=mm&r=g)
On Thu, 2021-09-30 at 14:52 -0400, Aditya Mahajan via ntg-context wrote:
On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote:
On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How to make all the files in the distribution known to the compiler?
Note that there is currently no proper support for LMTX in PGF/TikZ.
Interesting... it seems that only a few features don't work. I regularly use pgfplots, and haven't noticed any compatibility issues in my examples.
What will be needed to add a LMTX "driver" for TikZ? Porting pgfsys- luatex.def to pgfsys-luametatex.def? Or is something else also needed?
Yes, there would have to be a pgfsys-luametatex.def and some detection code to switch the driver appropriately but that latter part is easy. I'm not too sure what is needed for the former though for LMTX. When I last looked at it about a year ago it was completely unusable with the LuaTeX driver because position tracking primitives were removed (\pdflastxpos, \pdflastypos) and box keywords had changed (\hbox dir TRT). Some catcode trickery in pgfplots also had stopped working (https://github.com/pgf-tikz/pgfplots/pull/353). As Hans mentioned in another message, the PDF resource management has changed (if I understand it correctly), so things like shadings and patterns would have to be adjusted. Cheers, Henri
Aditya _______________________________________________________________________ ____________ 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 _______________________________________________________________________ ____________
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 10/1/2021 11:36 AM, Henri Menke via ntg-context wrote:
When I last looked at it about a year ago it was completely unusable with the LuaTeX driver because position tracking primitives were removed (\pdflastxpos, \pdflastypos) and box keywords had changed (\hbox dir TRT). Some catcode trickery in pgfplots also had stopped working (https://github.com/pgf-tikz/pgfplots/pull/353).
keep in mind that luatex has no \pdf prefixes (i added these for usage like tikz but we have other ones in context) in context we always used the 'direction' keyword because when we dropped many directions from luatex these weird three letter ones made no sense (basically they were sort of used as three constructor elements but that model was already dropped) anyway, as i mentioned, somehow the intenet triggers exageration: 'competely unueable' is also one of these 'move to bottom of todo list' things
As Hans mentioned in another message, the PDF resource management has changed (if I understand it correctly), so things like shadings and patterns would have to be adjusted. nothing changed there (also because we never really used the engines stuff) ut any resource managament has to be intercaces to any macro package
that said: i have a few tikz test files and when they run ok it's fine for me ... if something fails users can ask on the list (with a mnew) and when they don't ... no reason to complain 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 9/30/2021 11:57 AM, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How to make all the files in the distribution known to the compiler?
mtxrun --generate and you ned to use use m-tikz.mk* from the distribution 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 -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Thu, 30 Sep 2021, Alain Delmotte via ntg-context wrote:
Hi!
I would like to use tikz to benefit of the package "pgf-soroban" I did write for LaTeX (after adapting it and before, later, to translate it to metapost).
I did try the sample program from the tikz manual, but I get an error saying that "t-pgf.tex" is not found; but it is in the tree of ConTeXt-lmtx.
How did you install TikZ? The error message seems to suggest that tikz module is not installed. You can check by looking at the output of mtxrun t-pgf.tex On my system, that gives: /opt/luametatex/texmf-modules/tex/context/pgf/basiclayer/t-pgf.tex (which I had installed the texmf-modules tree by copying from the context standalone tree.
How to make all the files in the distribution known to the compiler?
By putting them in the right location in the tree (somewhere inside $TEXMF/tex/context ...). Aditya
participants (4)
-
Aditya Mahajan
-
Alain Delmotte
-
Hans Hagen
-
Henri Menke