diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-04 22:19:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-04 22:19:01 +0000 |
commit | 791a232caa9b4caf8f61713ddd320d9305a2270b (patch) | |
tree | 224aad913d85393ed20c235e6f8d56d2ea570db4 /Master/texmf-dist/tex/generic/circuitikz | |
parent | f2eb58cedc65eb309f9886084b630aa9038e692d (diff) |
circuitikz (4feb22)
git-svn-id: svn://tug.org/texlive/trunk@61873 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz')
13 files changed, 86 insertions, 68 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex index 51af9705f5f..9cc0b56eaf9 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % @@ -219,6 +219,21 @@ \fi } +% auxiliary macro to reset some thing in paths, for background images. +% use with care and ALWAYS inside a \pgfscope, see here: +% https://matrix.to/#/!NuxCISwYQJuyWwNsEI:matrix.org/$vQO6luq1F66LJ79dERmaqKI46qMBcjStqYCPi725uZE?via=matrix.org&via=2krueger.de&via=im.f3l.de +% Thanks to @muzimuzhi +% +\def\pgf@circ@reset@arrows{% + \pgfsetshortenstart{+0pt}\pgfsetshortenend{+0pt}\pgfsetarrows{-}% +} +\def\pgf@circ@reset@rounded{% + \pgfsetcornersarced{\pgfpointorigin}% +} +\def\pgf@circ@reset@arrows@rounded{% + \pgf@circ@reset@arrows\pgf@circ@reset@rounded +} + %%>>> %% font changes compatible with plain/LaTeX/ConTeXt%<<<1 @@ -462,7 +477,8 @@ \pgf@circ@res@down = \pgf@y \pgf@circ@scaled@Rlen=\scaledRlen \pgfstartlinewidth=\pgflinewidth - \pgfsetcornersarced{\pgfpointorigin}% do not use rounded corners! + % no rounded corners nor default arrows on bipole's bodies + \pgf@circ@reset@arrows@rounded #7 \pgfsetlinewidth{\pgfstartlinewidth} diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex index 447c2104fbb..d41ba541b34 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirccurrent.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirccurrent.tex index 77b02d53195..852042033ea 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirccurrent.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirccurrent.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex index 3d03925b527..b34bea8b1c9 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircflow.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex index ef115d4c5de..00be2b62520 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirclabel.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmonopoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmonopoles.tex index 08f58c1b706..69235549a78 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmonopoles.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmonopoles.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % @@ -417,17 +417,18 @@ {\ctikzvalof{bipoles/tline/width}} { \pgf@circ@res@step=.2\pgf@circ@res@right % half x axis - \begin{pgftransparencygroup} + \pgfscope \pgf@circ@setlinewidth{bipoles}{\pgfstartlinewidth} \pgfpathmoveto{\pgfpoint{\pgf@circ@res@right-\pgf@circ@res@step}{\pgf@circ@res@up}} \pgfpathlineto{\pgfpoint{\pgf@circ@res@left+\pgf@circ@res@step}{\pgf@circ@res@up}} \pgfpatharc{-90}{90}{-\pgf@circ@res@step and -\pgf@circ@res@up} \pgfpathlineto{\pgfpoint{\pgf@circ@res@right-\pgf@circ@res@step}{\pgf@circ@res@down}} + \pgfpatharc{-90}{90}{\pgf@circ@res@step and \pgf@circ@res@up} \pgf@circ@draworfill - \pgfpathellipse{\pgfpoint{\pgf@circ@res@right-\pgf@circ@res@step}{0pt}} - {\pgfpoint{\pgf@circ@res@step}{0pt}}{\pgfpoint{0pt}{-\pgf@circ@res@up}} - \pgf@circ@draworfill - \end{pgftransparencygroup} + \pgfpathmoveto{\pgfpoint{\pgf@circ@res@right-\pgf@circ@res@step}{\pgf@circ@res@up}} + \pgfpatharc{-90}{90}{-\pgf@circ@res@step and -\pgf@circ@res@up} + \pgfusepath{stroke} + \endpgfscope \pgfsetlinewidth{\pgfstartlinewidth} \pgfpathmoveto{\pgfpoint{\pgf@circ@res@right-\pgf@circ@res@step}{0pt}} \pgfpathlineto{\pgfpoint{\pgf@circ@res@right}{0pt}} @@ -488,18 +489,18 @@ \pgf@circ@scaled@Rlen=\scaledRlen \pgf@circ@res@step=\ctikzvalof{bipoles/tline/width}\pgf@circ@scaled@Rlen - \pgfscope\begin{pgftransparencygroup} - \pgfpathellipse{\pgfpoint{0.5\pgf@circ@res@step}{0\pgf@circ@res@step}}{\pgfpoint{0.125\pgf@circ@res@step}{0\pgf@circ@res@step}}{\pgfpoint{0\pgf@circ@res@step}{0.25\pgf@circ@res@step}} - \pgf@circ@maybefill + \pgfscope \pgfpathmoveto{\pgfpoint{0.5\pgf@circ@res@step}{0.25\pgf@circ@res@step}} \pgfpathlineto{\pgfpoint{1.5\pgf@circ@res@step}{0.25\pgf@circ@res@step}} \pgfpatharc{90}{-90}{0.125\pgf@circ@res@step and 0.25\pgf@circ@res@step} \pgfpathlineto{\pgfpoint{0.5\pgf@circ@res@step}{-0.25\pgf@circ@res@step}} \pgf@circ@setlinewidth{bipoles}{\pgfstartlinewidth} + \pgfpatharc{90}{-90}{-0.125\pgf@circ@res@step and -0.25\pgf@circ@res@step} \pgf@circ@draworfill - \pgfpathellipse{\pgfpoint{0.5\pgf@circ@res@step}{0\pgf@circ@res@step}}{\pgfpoint{0.125\pgf@circ@res@step}{0\pgf@circ@res@step}}{\pgfpoint{0\pgf@circ@res@step}{0.25\pgf@circ@res@step}} - \pgfusepath{draw} - \end{pgftransparencygroup} \endpgfscope + \pgfpathmoveto{\pgfpoint{0.5\pgf@circ@res@step}{0.25\pgf@circ@res@step}} + \pgfpatharc{90}{-90}{0.125\pgf@circ@res@step and 0.25\pgf@circ@res@step} + \pgfusepath{stroke} + \endpgfscope \pgfpathmoveto{\pgfpointorigin} \pgfpathlineto{\pgfpoint{0.5\pgf@circ@res@step}{0pt}} \pgfusepath{draw} diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex index 30a4a268002..a53bbe03f25 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircpath.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircpath.tex index 405cfd45bb6..4518f16479c 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircpath.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircpath.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircquadpoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircquadpoles.tex index 1b2e77e613a..aa481caaf95 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircquadpoles.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircquadpoles.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex index 4ee224cc9d6..f489ac58e67 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircshapes.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % @@ -584,6 +584,7 @@ \behindforegroundpath{ \pgfscope \ifpgfcirc@really@draw@currarrow + \pgf@circ@reset@arrows@rounded \pgf@circ@res@step = \pgf@circ@Rlen \divide \pgf@circ@res@step by \ctikzvalof{current arrow scale} @@ -591,7 +592,7 @@ \pgfpathlineto{\pgfpoint{-.7\pgf@circ@res@step}{-.8\pgf@circ@res@step}} \pgfpathlineto{\pgfpoint{1\pgf@circ@res@step}{0pt}} \pgfpathlineto{\pgfpoint{-.7\pgf@circ@res@step}{.8\pgf@circ@res@step}} - \pgfpathlineto{\pgfpoint{-.7\pgf@circ@res@step}{0pt}} + \pgfpathclose \pgfsetcolor{\ctikzvalof{color}} \pgfusepath{draw,fill} \fi @@ -639,6 +640,7 @@ \behindforegroundpath{ \pgfscope \ifpgfcirc@really@draw@flowarrow + \pgf@circ@reset@arrows@rounded \pgf@circ@res@step = \pgf@circ@Rlen \divide \pgf@circ@res@step by 4 \pgfpathmoveto{\pgfpoint{-\pgf@circ@res@step}{0pt}} @@ -681,17 +683,16 @@ \behindforegroundpath{ \pgfscope + \pgf@circ@reset@arrows@rounded \pgf@circ@res@step = \pgf@circ@Rlen \divide \pgf@circ@res@step by 16 - \pgfpathmoveto{\pgfpoint{-1.7\pgf@circ@res@step}{0pt}} \pgfpathlineto{\pgfpoint{-1.7\pgf@circ@res@step}{-.8\pgf@circ@res@step}} \pgfpathlineto{\pgfpoint{0pt}{0pt}} \pgfpathlineto{\pgfpoint{-1.7\pgf@circ@res@step}{.8\pgf@circ@res@step}} - \pgfpathlineto{\pgfpoint{-1.7\pgf@circ@res@step}{0pt}} + \pgfpathclose \pgfsetcolor{\ctikzvalof{color}} \pgfusepath{fill} - \endpgfscope } } diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex index 6f07d6042f1..d0cf0b295ad 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex index c132b16c853..d50d4111654 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex index 75543f42a5d..4b6c22dfea1 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircvoltage.tex @@ -1,7 +1,7 @@ -% Copyright 2018-2021 by Romano Giannetti -% Copyright 2015-2021 by Stefan Lindner -% Copyright 2013-2021 by Stefan Erhardt -% Copyright 2007-2021 by Massimo Redaelli +% Copyright 2018-2022 by Romano Giannetti +% Copyright 2015-2022 by Stefan Lindner +% Copyright 2013-2022 by Stefan Erhardt +% Copyright 2007-2022 by Massimo Redaelli % % This file may be distributed and/or modified % |