summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-04-29 23:01:08 +0000
committerKarl Berry <karl@freefriends.org>2018-04-29 23:01:08 +0000
commit962840188681e1d6f4aec0ebf07e05a70609325d (patch)
treee52ae47b050b61688ebd40d705b32c5031c2b200 /Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty
parent52c3c8ff1c0e07c4437eaea8df993e626fc9a52a (diff)
lwarp (26apr18)
git-svn-id: svn://tug.org/texlive/trunk@47491 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty33
1 files changed, 23 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 ce142a3f2b9..0c90b0e23d7 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-tikz.sty
@@ -16,7 +16,7 @@
%% and version 1.3 or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
-\LWR@ProvidesPackagePass{tikz}
+\LWR@ProvidesPackagePass{tikz}[2015/08/07]
\newboolean{LWR@tikzbabel}
@@ -25,22 +25,35 @@
{\usetikzlibrary{babel}\booltrue{LWR@tikzbabel}}
{\boolfalse{LWR@tikzbabel}}
-\LetLtxMacro\LWR@origtikzpicture\tikzpicture
-
-\renewcommand*{\tikzpicture}[1][]{%
+\preto\pgfpicture{%
\begin{lateximage}%
\ifbool{LWR@tikzbabel}% Test for Tikz version v3.0.0
{}%
{\catcode`\$=3}% dollar sign is math shift
- \LWR@origtikzpicture[#1]%
}
-\LetLtxMacro\LWR@origendtikzpicture\endtikzpicture
+\appto\endpgfpicture{\end{lateximage}}
-\renewcommand*{\endtikzpicture}{%
- \LWR@origendtikzpicture%
- \end{lateximage}%
-}
+\LetLtxMacro\pgfutil@minipage\LWR@origminipage
+\let\pgfutil@endminipage\LWR@origendminipage
+
+\let\pgfutil@raggedleft\LWR@origraggedleft
+\let\pgfutil@raggedright\LWR@origraggedright
+
+\def\pgfutil@font@tiny{\LWR@origtiny}
+\def\pgfutil@font@scriptsize{\LWR@origscriptsize}
+\def\pgfutil@font@footnotesize{\LWR@origfootnotesize}
+\def\pgfutil@font@small{\LWR@origsmall}
+\def\pgfutil@font@normalsize{\LWR@orignormalsize}
+\def\pgfutil@font@large{\LWR@origlarge}
+\def\pgfutil@font@Large{\LWR@origLarge}
+\def\pgfutil@font@huge{\LWR@orighuge}
+\def\pgfutil@font@Huge{\LWR@origHuge}
+
+\def\pgfutil@font@itshape{\LWR@origitshape}
+\def\pgfutil@font@bfseries{\LWR@origbfseries}
+
+\def\pgfutil@font@normalfont{\LWR@orignormalfont}
\endinput
%%