summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-11-27 01:23:48 +0000
committerKarl Berry <karl@freefriends.org>2009-11-27 01:23:48 +0000
commitc2891584a71bef79217edf0f155772dae1f68b61 (patch)
treeaa182bbf18e9a50a6a3c89f4809535b30322f736 /Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty
parent5647d8caa246f321a52c4b2e3a3c863ebf7be802 (diff)
circuitikz 0.2.3 (26nov09)
git-svn-id: svn://tug.org/texlive/trunk@16183 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty')
-rw-r--r--Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty19
1 files changed, 17 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty b/Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty
index 49c3cef228a..9ac9ade73d6 100644
--- a/Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty
+++ b/Master/texmf-dist/tex/latex/circuitikz/pgfcircutils.sty
@@ -7,9 +7,24 @@
%
% See the file doc/LICENSE for more details.
+%\def\pgf@circ@handleSI#1{%
+ % \pgf@circ@siunitx@resfalse
+%
+ % \edef\len{\stringlength[e]{#1}}
+ %\testmatchingchar[e]{#1}{\len}{>}%
+ %\ifmatchingchar%
+ % \ifnum\findchars{#1}{<}=0
+ % \def\pgf@circ@handleSI@val{\substring{#1}{1}{\findchars{#1}{<}-1}}
+ %\def\pgf@circ@handleSI@unit{\substring{#1}{\findchars{#1}{<}-1}+1}{\stringlength{#1}}
+ %\pgf@circ@siunitx@restrue
+% \else
+% \fi
+ %\else
+ %\fi
+%}
\def\pgf@circ@handleSI#1{
-% \noexpandarg
+ \noexpandarg
\def\pgf@temp{}
\StrBetween{#1}{<}{>}[\pgf@circ@handleSI@unit]
\StrLen{\pgf@circ@handleSI@unit}[\pgf@circ@handleSI@unit@len]
@@ -19,7 +34,7 @@
\else
\IfEndWith{#1}{>}{
\pgf@circ@siunitx@restrue
-% \noexpandarg
+ \noexpandarg
\StrBefore{#1}{<}[\pgf@circ@handleSI@val]
}{
\pgf@circ@siunitx@resfalse