diff options
author | Karl Berry <karl@freefriends.org> | 2022-05-17 20:11:50 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-05-17 20:11:50 +0000 |
commit | aa3471d9cc6e366651884f1d1e883511bb15132a (patch) | |
tree | 2c64bd191bd6d55c4ec54889fce9fc62344b5ac3 /Master/texmf-dist/tex/optex/pkg | |
parent | 905fbaa9cf31d5e79a8ad885abae9604045ac1ed (diff) |
optex (17may22)
git-svn-id: svn://tug.org/texlive/trunk@63325 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/optex/pkg')
-rw-r--r-- | Master/texmf-dist/tex/optex/pkg/tikz.opm | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/optex/pkg/tikz.opm b/Master/texmf-dist/tex/optex/pkg/tikz.opm index 84743a18b68..87b2f7369a1 100644 --- a/Master/texmf-dist/tex/optex/pkg/tikz.opm +++ b/Master/texmf-dist/tex/optex/pkg/tikz.opm @@ -1,8 +1,9 @@ % This is macro package used by OpTeX, see http://petr.olsak.net/optex -\_codedecl \tikzpicture {TikZ for OpTeX <2022-02-11>} +\_codedecl \tikzpicture {TikZ for OpTeX <2022-02-18>} \_namespace{pgf} \_catcode`\@=11 +\_let\_optexforeach=\foreach \_doc This package is \OpTeX/'s compatibility layer for PGF/TikZ. When users do @@ -143,10 +144,22 @@ \_ea\_wref\_ea\.Xpgfsysmark\_ea{\_ea{\.tmp}{\_the\_lastxpos}{\_the\_lastypos}}% } + \_doc + I decide to keep \OpTeX's `\foreach` outside the Tikz environment. + The Tikz's `\foreach` is activated only inside its environment. + If you want to use Tikz's `\foreach` outside too then you can say + `\let\foreach=\_pgf_foreach`. + \_cod + +\addto \tikz@startup@env {\let\foreach=\pgffor@foreach} +\_let\.foreach=\pgffor@foreach % \_pgf_foreach is \pgffor@foreach +\_let\foreach=\_optexforeach % \foreach is OpTeX's \foreach + % don't worry about reseting catcodes - we are at the end of \opinput'ed file \_endnamespace \_endcode History: -2022-03-05 resources management re-implemented +2022-03-18 Tikz's \foreach only in its environment. +2022-03-05 resources management re-implemented. 2021-07-15 released |