diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty index 728d49952ca..ce142a3f2b9 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty @@ -25,18 +25,21 @@ {\usetikzlibrary{babel}\booltrue{LWR@tikzbabel}} {\boolfalse{LWR@tikzbabel}} -\BeforeBeginEnvironment{tikzpicture}{% -\begin{lateximage}% -\ifbool{LWR@tikzbabel}% Test for Tikz version v3.0.0 -{}% -{\catcode`\$=3}% dollar sign is math shift +\LetLtxMacro\LWR@origtikzpicture\tikzpicture + +\renewcommand*{\tikzpicture}[1][]{% + \begin{lateximage}% + \ifbool{LWR@tikzbabel}% Test for Tikz version v3.0.0 + {}% + {\catcode`\$=3}% dollar sign is math shift + \LWR@origtikzpicture[#1]% } -\AfterEndEnvironment{tikzpicture}{% -\end{lateximage}% -\ifbool{LWR@tikzbabel}% Test for Tikz version v3.0.0 -{}% -{\catcode`\$=\active}% +\LetLtxMacro\LWR@origendtikzpicture\endtikzpicture + +\renewcommand*{\endtikzpicture}{% + \LWR@origendtikzpicture% + \end{lateximage}% } \endinput |