diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex')
-rw-r--r-- | Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex index 81192ba913e..2860ef9a32d 100644 --- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex +++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex @@ -65,5 +65,19 @@ \def\ctikztextnot#1{$\overline{\hbox{#1}}$} \fi\fi\fi +%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% switch to use fpu in reciprocal scale transformations +%% +%% this code has been contributed by Schrödinger's cat +%% https://tex.stackexchange.com/a/529159/38080 +%% +\tikzset{use fpu reciprocal/.code={% +\def\pgfmathreciprocal@##1{% + \begingroup + \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}% + \pgfmathparse{1/##1}% + \pgfmath@smuggleone\pgfmathresult + \endgroup +}}}% \endinput |