On 6/8/2021 3:00 PM, Gavin wrote:
Hans,
On Jun 8, 2021, at 6:36 AM, Hans Hagen <j.ha...@xs4all.nl> wrote:
On 6/8/2021 9:56 AM, Leonard Janis Robert König wrote:
Hello Gavin,
On Mon, 2021-06-07 at 18:04 -0600, Gavin wrote:
Tik-Z files seem to have gone missing in the ConTeXt. Here’s a MWE:
\usemodule[tikz] % Error in current MkIV and LMTX, but
OK in TeX Live 2021
\usemodule[pgfplots] % Error in Tex Live 2021
\starttext
Hello
\stoptext
The error is in MkIV is:
tex error > tex error on line 21 in file /Users/Gavin/context-
osx-64/tex/texmf-context/tex/context/modules/mkiv/m-tikz.mkiv: ! I
can't find file `t-pgf.tex'.
l.21 \input t-pgf.tex
For me this builds fine with MkIV (TeX Live 2021 on Arch, specifically
2021.58686-3), however TikZ is incompatible with LMTX right now:
https://github.com/pgf-tikz/pgf/issues/990
There I get the following issue which is slightly different than yours
\usemodule[tikz]
\usemodule[pgfplots]
\starttext
Hello
\stoptext
rusn without error here (so are you sure that you use m-tikz.mkiv from the
distribution)?
Yes, I’m using m-tikz.mkiv from the distribution. I opened it to confirm that it has the
line \input t-pgf.tex, but I can’t find the file "t-pgf.tex” anywhere on my
computer. I also checked the source browser at contextgarden. There m-tikz.mkiv also has
the line "\input t-pgf.tex”, but I can’t find the file t-pgf.tex on the source
browser either.
Where is t-pgf.tex supposed to be?
somplace in a mdoules tree i installed from the garden (but maybe it's
nowaways not there)
but we can try to avoid it (probably error prone anyway because i see a
dangling \stopmodule) by moving what is in there to the m- one; can you
test the attached
(i have a few files in the test suite so when something tikz breaks i
normally get a signal - i'm not a tikz user myself so i rely on otheres
for more detailed reports)
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
-----------------------------------------------------------------
%D A fixed variant if the t-tikz module distributed with tikz.
\ifdefined\pdflastxpos \else
\unprotect
\frozen\overloaded\protected\def\pdflastxpos{\numexpr\clf_lastxpos\relax}
\frozen\overloaded\protected\def\pdflastypos{\numexpr\clf_lastypos\relax}
\protect
\fi
\pushoverloadmode
\pushcatcodetable
\setcatcodetable\texcatcodes
\catcode`\@=11
\catcode`\|=12
\catcode`\!=12
\input t-pgf.tex
\input t-pgffor.tex
\input tikz.code.tex
\popcatcodetable
\popoverloadmode
\permanent\protected\def\tikzerrormessage#1#2#3%
{\writestatus{#1}{#2}}
\ifcase\contextlmtxmode
\let\starttikzsettings\relax
\let\stoptikzsettings \relax
\protected\def\starttikzpicture
{% \dontleavehmode
\begingroup
\ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
\tikzpicture}
\protected\def\stoptikzpicture
{\endtikzpicture
\endgroup}
\else
% for now:
\overloadmode\zerocount
% but this will be mandate for settings outside the start .. stop
\permanent\protected\def\starttikzsettings
{\pushoverloadmode}
\permanent\protected\def\stoptikzsettings
{\popoverloadmode}
\permanent\protected\def\starttikzpicture
{\dontleavehmode
\hcontainer\bgroup
% \pushoverloadmode
\ifdefined\PackageError\else \let\PackageError\tikzerrormessage \fi
\tikzpicture}
\permanent\protected\def\stoptikzpicture
{\endtikzpicture
% \popoverloadmode
\egroup}
\fi
% \input t-pgf.tex
\ifx\pgfdefined\undefined
\let\pgfdefined\relax
% \input t-pgfcor.tex
\ifx\pgfcoredefined\undefined
\let\pgfcoredefined=\relax
\input t-pgfsys.tex
\edef\pgfcoreatcode {\the\catcode`\@}
\edef\pgfcorebarcode {\the\catcode`\|}
\edef\pgfcoreexclaimcode{\the\catcode`\!}
\catcode`\@=11
\catcode`\|=12
\catcode`\!=12
\input pgfcore.code.tex
\catcode`\@=\pgfcoreatcode
\catcode`\|=\pgfcorebarcode
\catcode`\!=\pgfcoreexclaimcode
\let\startpgfpicture \pgfpicture
\let\stoppgfpicture \endpgfpicture
\let\startpgfscope \pgfscope
\let\stoppgfscope \endpgfscope
\let\startpgflowlevelscope \pgflowlevelscope
\let\stoppgflowlevelscope \endpgflowlevelscope
\let\startpgfinterruptpath \pgfinterruptpath
\let\stoppgfinterruptpath \endpgfinterruptpath
\let\startpgfinterruptpicture \pgfinterruptpicture
\let\stoppgfinterruptpicture \endpgfinterruptpicture
\let\startpgfinterruptboundingbox\pgfinterruptboundinbox
\let\stoppgfinterruptboudingbox\endpgfinterruptboundingbox
\fi
\usepgfmodule[shapes,plot]
\fi
\stopmodule
___________________________________________________________________________________
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
___________________________________________________________________________________