diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/circuitikz/pgfcirc.defines.tex | 26 |
1 files changed, 21 insertions, 5 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} |