diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex | 53 |
1 files changed, 25 insertions, 28 deletions
diff --git a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex index e8aeabd2468..56a5340f99e 100644 --- a/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex +++ b/Master/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.code.tex @@ -7,7 +7,7 @@ % % See the file doc/generic/pgf/licenses/LICENSE for more details. -\usetikzlibrary{decorations.markings,calc} +\usetikzlibrary{calc,decorations.markings}% % @@ -23,7 +23,7 @@ \def\tikz@lib@circ@end{-- (\tikztotarget) \tikztonodes} } } -} +}% \newif\iftikz@lib@circ@on@to @@ -75,10 +75,10 @@ \pgfkeysalso{#1} \fi } -} +}% \newcount\tikz@lib@circ@count -\def\tikz@zero@text{0.0} -\def\tikz@one@text{1.0} +\def\tikz@zero@text{0.0}% +\def\tikz@one@text{1.0}% \def\tikz@lib@circ@compute@direction#1{% \tikz@scan@one@point\tikz@lib@circ@save@start(\tikztostart)% @@ -86,9 +86,9 @@ \pgf@process{\pgfpointnormalised{\pgfpointdiff{\tikz@lib@circ@start}{\tikz@lib@circ@target}}}% \pgf@ya=-\pgf@y% \pgftransformcm{\the\pgf@x}{\the\pgf@y}{\the\pgf@ya}{\the\pgf@x}{#1}% -} -\def\tikz@lib@circ@save@start#1{\def\tikz@lib@circ@start{#1}} -\def\tikz@lib@circ@save@target#1{\def\tikz@lib@circ@target{#1}} +}% +\def\tikz@lib@circ@save@start#1{\def\tikz@lib@circ@start{#1}}% +\def\tikz@lib@circ@save@target#1{\def\tikz@lib@circ@target{#1}}% \tikzset{ circuits/pos grabber/.is family, @@ -100,7 +100,7 @@ near end/.belongs to family=/tikz/circuits/pos grabber, very near end/.belongs to family=/tikz/circuits/pos grabber, at end/.belongs to family=/tikz/circuits/pos grabber -} +}% % @@ -126,7 +126,7 @@ % node look like the symbol. For instance, for a resistor that is % rendered as a rectangle, this keys can be set, basically, to % "rectangle,draw". Set this key to use a different appearance for - % symbols of kind #1. + % symbols of kind #1. % % every #1 % This style will be included with every symbols of this kind and @@ -154,7 +154,7 @@ medium circuit symbols/.style={circuit symbol unit=7pt}, small circuit symbols/.style={circuit symbol unit=6pt}, tiny circuit symbols/.style={circuit symbol unit=5pt}, -} +}% \newdimen\tikzcircuitssizeunit \tikzcircuitssizeunit=7pt @@ -199,7 +199,7 @@ /utils/exec={\pgfsetarrowoptions{direction ee}{.4*\the\tikzcircuitssizeunit+.3*\the\pgflinewidth}}, >=direction ee } -} +}% @@ -211,7 +211,7 @@ point down/.style={rotate=-90}, point left/.style={rotate=180}, point right/.style={} -} +}% @@ -225,7 +225,7 @@ circuit symbol filled/.style={draw,fill=black}, circuit symbol lines/.style={draw}, circuit symbol wires/.style={draw}, -} +}% @@ -242,28 +242,25 @@ info' sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@slopedp@plain{\tikz@lib@circ@lab@slopedp@plain[]}#1\pgf@stop},%} circuit declare unit/.style 2 args={ % - % Defines four styles that can be used to add labels to a node. + % Defines four styles that can be used to add labels to a node. % #1/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab{\tikz@lib@circ@lab[]}##1\pgf@stop{#2}{#1}},%} #1 sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@sloped{\tikz@lib@circ@lab@sloped[]}##1\pgf@stop{#2}{#1}},%} - #1'/.code={\pgfutil@ifnextchar[\tikz@lib@circ@labp{\tikz@lib@circ@labp[]}##1\pgf@stop{#2}{#1}},%} + #1'/.code={\pgfutil@ifnextchar[\tikz@lib@circ@labp{\tikz@lib@circ@labp[]}##1\pgf@stop{#2}{#1}},%} #1' sloped/.code={\pgfutil@ifnextchar[\tikz@lib@circ@lab@slopedp{\tikz@lib@circ@lab@slopedp[]}##1\pgf@stop{#2}{#1}}%} } -} +}% -\def\tikz@lib@circ@lab[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}} -\def\tikz@lib@circ@lab@sloped[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}} -\def\tikz@lib@circ@labp[#1]#2\pgf@stop#3#4{\tikzset{label={[label position=below,every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}} -\def\tikz@lib@circ@lab@slopedp[#1]#2\pgf@stop#3#4{\tikzset{label={[label -position=below,every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}} +\def\tikz@lib@circ@lab[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}}% +\def\tikz@lib@circ@lab@sloped[#1]#2\pgf@stop#3#4{\tikzset{label={[every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}}% +\def\tikz@lib@circ@labp[#1]#2\pgf@stop#3#4{\tikzset{label={[label position=below,every info/.try,every #4/.try,#1]$\mathrm{#2#3}$}}}% +\def\tikz@lib@circ@lab@slopedp[#1]#2\pgf@stop#3#4{\tikzset{label={[label position=below,every info/.try,every #4/.try,transform shape,#1]$\mathrm{#2#3}$}}}% -\def\tikz@lib@circ@lab@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,#1]#2}}} -\def\tikz@lib@circ@lab@sloped@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,transform shape,#1]#2}}} -\def\tikz@lib@circ@labp@plain[#1]#2\pgf@stop{\tikzset{label={[label position=below,every info/.try,#1]#2}}} -\def\tikz@lib@circ@lab@slopedp@plain[#1]#2\pgf@stop{\tikzset{label={[label -position=below,every info/.try,transform shape,#1]#2}}} +\def\tikz@lib@circ@lab@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,#1]#2}}}% +\def\tikz@lib@circ@lab@sloped@plain[#1]#2\pgf@stop{\tikzset{label={[every info/.try,transform shape,#1]#2}}}% +\def\tikz@lib@circ@labp@plain[#1]#2\pgf@stop{\tikzset{label={[label position=below,every info/.try,#1]#2}}}% +\def\tikz@lib@circ@lab@slopedp@plain[#1]#2\pgf@stop{\tikzset{label={[label position=below,every info/.try,transform shape,#1]#2}}}% \endinput - |