texlive[60435] Master: circuitikz (6sep21)

commits+karl at tug.org commits+karl at tug.org
Mon Sep 6 23:14:20 CEST 2021


Revision: 60435
          http://tug.org/svn/texlive?view=revision&revision=60435
Author:   karl
Date:     2021-09-06 23:14:19 +0200 (Mon, 06 Sep 2021)
Log Message:
-----------
circuitikz (6sep21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf
    trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md
    trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
    trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
    trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
    trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
    trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex
    trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
    trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md
===================================================================
--- trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md	2021-09-06 21:14:19 UTC (rev 60435)
@@ -1,6 +1,14 @@
 <!--- CircuiTikz - Changelog --->
 The major changes among the different CircuiTikZ versions are listed here. See <https://github.com/circuitikz/circuitikz/commits> for a full list of changes.
 
+* Version 1.4.3 (2021-09-06)
+
+    Minor release, mainly a single bugfix.
+
+    - added hidden anchors of `ooosource` to the manual
+    - fix a bug in anchors of `ooosource` (they did not respect class scaling)
+    - faster `use fpu reciprocal` (thanks to Henri Menke)
+
 * Version 1.4.2 (2021-07-26)
 
     This is a minor release, containing just a new component and a

Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex	2021-09-06 21:14:19 UTC (rev 60435)
@@ -5,6 +5,21 @@
 
 \begin{itemize}
 \item
+  Version 1.4.3 (2021-09-06)
+
+  Minor release, mainly a single bugfix.
+
+  \begin{itemize}
+  \tightlist
+  \item
+    added hidden anchors of \texttt{ooosource} to the manual
+  \item
+    fix a bug in anchors of \texttt{ooosource} (they did not respect
+    class scaling)
+  \item
+    faster \texttt{use\ fpu\ reciprocal} (thanks to Henri Menke)
+  \end{itemize}
+\item
   Version 1.4.2 (2021-07-26)
 
   This is a minor release, containing just a new component and a small

Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex	2021-09-06 21:14:19 UTC (rev 60435)
@@ -2545,9 +2545,13 @@
 		\footnotetext{Added by André Alves in \texttt{v1.3.5}}
     \circuitdescbip*[oosource]{ioosource}{Double Zero style current source}{}
     \circuitdescbip*[oosource]{voosource}{Double Zero style voltage source}{}
-    \circuitdescbip*[oosourcetrans]{oosourcetrans}{transformer source\footnotemark}{}
+    \circuitdescbip*[oosourcetrans]{oosourcetrans}{transformer source\footnotemark}{}(centerprim/90/0.3, centersec/-90/0.3)
         \footnotetext{The \texttt{oosourcetrans} and \texttt{ooosource} componentes have benn added by \href{https://github.com/circuitikz/circuitikz/pull/397}{user \texttt{@olfline} on GitHub}}.
-    \circuitdescbip*[ooosource]{ooosource}{transformer with three windings}{}(left/175/0.2, right/5/0.5, prim1/130/.2, prim2/-130/.2, sec1/45/.2, sec2/60/.2, sec3/90/.2, tert1/0/.2, tert2/-45/.2, tert3/-90/.2)
+    \begingroup
+        \ctikzset{sources/scale=1.5}
+        \circuitdescbip*[ooosource]{ooosource}{transformer with three windings\footnotemark}{}(left/175/0.2, right/5/0.7, prim1/130/.2, prim2/-130/.2, sec1/35/.2, sec2/60/.2, sec3/90/.2, tert1/0/.2, tert2/-45/.2, tert3/-90/.2, centerprim/92/0.8, centersec/35/0.9, centertert/-35/0.8)
+        \footnotetext{The component here is scaled up 1.5 times to better show the anchors.}
+    \endgroup
 \end{groupdesc}
 
 The transformer shapes vector group options can be specified for the primary (\texttt{prim=\emph{value}}), the secondary (\texttt{sec=\emph{value}}) and tertiary (\texttt{tert=\emph{value}}) three-phase vector groups: the value can be one of \texttt{delta}, \texttt{wye} and \texttt{zig}.
@@ -2582,7 +2586,7 @@
 \paragraph{Size.}
 You can change the scale of the batteries by setting the key \texttt{batteries/scale}, for the controlled (dependent) sources with \texttt{csources/scale}, and for all the other independent sources and generators with \texttt{sources/scale}, to something different from the default \texttt{1.0}.
 
-Notice that the size of the double-circle sources (and of the triple-circle one) are tuned so that the full source occupy more or less the same horizontal space than one of the single-circle one; obviously, the circle are much smaller. If you want to have the same circle radius, you have to scale (locally!) those sources by one factor that is \texttt{1.5384} ($1/0.65$) for \texttt{oosource}, \texttt{1.6667} ($1/0.6$) for \texttt{oosourcetrans}, and \texttt{1.8182} ($1/0.55$) for \texttt{ooosource}.
+Notice that the size of the double-circle sources (and of the triple-circle one) are tuned so that the full source occupy more or less the same horizontal space than one of the single-circle one; as a consequence, the circles are much smaller. If you want to have the same circle radius, you have to scale (locally!) those sources by one factor that is \texttt{1.5384} ($1/0.65$) for \texttt{oosource}, \texttt{1.6667} ($1/0.6$) for \texttt{oosourcetrans}, and \texttt{1.8182} ($1/0.55$) for \texttt{ooosource}.
 
 \begin{LTXexample}[varwidth=true]
 \begin{circuitikz}

Modified: trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex	2021-09-06 21:14:19 UTC (rev 60435)
@@ -10,8 +10,8 @@
 %
 % See the files gpl-3.0_license.txt and lppl-1-3c_license.txt for more details.
 
-\def\pgfcircversion{1.4.2}
-\def\pgfcircversiondate{2021/07/26}
+\def\pgfcircversion{1.4.3}
+\def\pgfcircversiondate{2021/09/06}
 \writestatus{loading}{\pgfcircversiondate{} The CircuiTikz circuit drawing package version \pgfcircversion}
 
 \usemodule[tikz]

Modified: trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex	2021-09-06 21:14:19 UTC (rev 60435)
@@ -2164,7 +2164,18 @@
 
 %% Independent double oo source
 \pgfcircdeclarebipolescaled{sources}
-{}
+{
+    \anchor{centerprim}{
+        \northeast
+        \pgf at y=0pt\relax
+        \pgf at x=-\ctikzvalof{bipoles/oosource/circleoffset}\pgf at x
+    }
+    \anchor{centersec}{
+        \northeast
+        \pgf at y=0pt\relax
+        \pgf at x=\ctikzvalof{bipoles/oosource/circleoffset}\pgf at x
+    }
+}
 {\ctikzvalof{bipoles/oosource/height}}
 {oosource}
 {\ctikzvalof{bipoles/oosource/height}}
@@ -2248,7 +2259,18 @@
 
 % % % % round three-phase transformer
 \pgfcircdeclarebipolescaled{sources}
-{}
+{
+    \anchor{centerprim}{
+        \northeast
+        \pgf at y=0pt\relax
+        \pgf at x=-\ctikzvalof{bipoles/oosourcetrans/circleoffset}\pgf at x
+    }
+    \anchor{centersec}{
+        \northeast
+        \pgf at y=0pt\relax
+        \pgf at x=\ctikzvalof{bipoles/oosourcetrans/circleoffset}\pgf at x
+    }
+}
 {\ctikzvalof{bipoles/oosourcetrans/height}}
 {oosourcetrans}
 {\ctikzvalof{bipoles/oosourcetrans/height}}
@@ -2330,18 +2352,20 @@
             \pgf at y=0pt
     }
     \savedanchor{\centerprim}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@scaled at Rlen
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@res at other
             \pgf at y=0pt
-            \pgf at x=.5\pgf at circ@scaled at Rlen
+            \pgf at x=.5\pgf at circ@res at other
     }
     \anchor{centerprim}{
             \centerprim
     }
     \savedanchor{\centersec}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@scaled at Rlen
-            \pgfpointpolar{60}{.5\pgf at circ@scaled at Rlen}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@res at other
+            \pgfpointpolar{60}{.5\pgf at circ@res at other}
             \pgf at y=-\pgf at y
             \pgf at x=-\pgf at x
     }
@@ -2349,9 +2373,10 @@
             \centersec
     }
     \savedanchor{\centertert}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@scaled at Rlen
-            \pgfpointpolar{60}{.5\pgf at circ@scaled at Rlen}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=-\ctikzvalof{bipoles/ooosource/circleoffset}\pgf at circ@res at other
+            \pgfpointpolar{60}{.5\pgf at circ@res at other}
             \pgf at y=\pgf at y
             \pgf at x=-\pgf at x
     }
@@ -2361,44 +2386,52 @@
 
     % add some anchors in case the are needed :)
     \anchor{prim1}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centerprim}{\pgfpointpolar{135}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centerprim}{\pgfpointpolar{135}{.5\pgf at circ@res at other}}
     }
     \anchor{prim2}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centerprim}{\pgfpointpolar{-135}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centerprim}{\pgfpointpolar{-135}{.5\pgf at circ@res at other}}
     }
     \anchor{sec1}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centersec}{\pgfpointpolar{0}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centersec}{\pgfpointpolar{0}{.5\pgf at circ@res at other}}
     }
     \anchor{sec2}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centersec}{\pgfpointpolar{45}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centersec}{\pgfpointpolar{45}{.5\pgf at circ@res at other}}
     }
     \anchor{sec3}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centersec}{\pgfpointpolar{90}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centersec}{\pgfpointpolar{90}{.5\pgf at circ@res at other}}
     }
     \anchor{tert1}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centertert}{\pgfpointpolar{0}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centertert}{\pgfpointpolar{0}{.5\pgf at circ@res at other}}
     }
     \anchor{tert2}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centertert}{\pgfpointpolar{-45}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centertert}{\pgfpointpolar{-45}{.5\pgf at circ@res at other}}
     }
     \anchor{tert3}{
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@Rlen
-            \pgf at circ@scaled at Rlen=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@scaled at Rlen
-            \pgfpointadd{\centertert}{\pgfpointpolar{-90}{.5\pgf at circ@scaled at Rlen}}
+            \pgf at circ@scaled at Rlen=\ctikzvalof{\ctikzclass/scale}\pgf at circ@Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/height}\pgf at circ@scaled at Rlen
+            \pgf at circ@res at other=\ctikzvalof{bipoles/ooosource/circlesize}\pgf at circ@res at other
+            \pgfpointadd{\centertert}{\pgfpointpolar{-90}{.5\pgf at circ@res at other}}
     }
 }
 {\ctikzvalof{bipoles/ooosource/height}}

Modified: trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex	2021-09-06 21:14:19 UTC (rev 60435)
@@ -75,18 +75,22 @@
 %% https://github.com/pgf-tikz/pgf/issues/861
 %%
 %% Thanks to "muzimuzhi Z" https://tex.stackexchange.com/a/547085/38080
+%% Thanks to Henri Menke for a faster approach https://github.com/circuitikz/circuitikz/commit/00966c45c42b464fab5429f89f2b7fb414e9b3f7#commitcomment-54592494
 %%
 \pgfkeysifdefined{/pgf/fpu/install only/. at cmd}{%
     \pgfqkeys{/pgf}{use fpu reciprocal/.code={\pgfkeys{/pgf/fpu/install only={reciprocal}}}}%
     }{%
-    \pgfqkeys{/pgf}{use fpu reciprocal/.code={%
-    \def\pgfmathreciprocal@##1{%
-        \begingroup
-        \pgfkeys{/pgf/fpu=true,/pgf/fpu/output format=fixed}%
-        \pgfmathparse{1/##1}%
-        \pgfmath at smuggleone\pgfmathresult
-        \endgroup
-    }}}%
+    \pgfkeysifdefined{/pgf/use fpu reciprocal/. at cmd}{% use stock one
+        }{
+        \pgfqkeys{/pgf}{use fpu reciprocal/.code={%
+                \def\pgfmathreciprocal@##1{%
+                    \begingroup
+                    \pgfmathfloatparsenumber{##1}%
+                    \pgfmathfloatreciprocal@{\pgfmathresult}%
+                    \pgfmathfloattofixed@{\pgfmathresult}%
+                    \pgfmath at smuggleone\pgfmathresult
+                    \endgroup
+    }}}}%
 }
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Modified: trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty	2021-09-06 21:14:19 UTC (rev 60435)
@@ -16,8 +16,8 @@
 \providecommand\DeclareRelease[3]{}
 \providecommand\DeclareCurrentRelease[2]{}
 
-\def\pgfcircversion{1.4.2}
-\def\pgfcircversiondate{2021/07/26}
+\def\pgfcircversion{1.4.3}
+\def\pgfcircversiondate{2021/09/06}
 
 \DeclareRelease{0.4}{2012/12/20}{circuitikz-0.4-body.tex}
 \DeclareRelease{v0.4}{2012/12/20}{circuitikz-0.4-body.tex}

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2021-09-06 21:09:57 UTC (rev 60434)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2021-09-06 21:14:19 UTC (rev 60435)
@@ -954,6 +954,7 @@
  'norasi-c90',  "&MAKEnorasi_c90",
  'notes',       "&MAKEnotes",
  'notocjksc',	"die 'skipping, 300mb is just too big'",
+ 'notocondensed',	"die 'skipping, too big, on tlcontrib'",
  'notomath',	"&MAKEflatten",
  'ntabbing',    "die 'skipping, noinfo license, author email bad'",
  'ntg',         "die 'skipping, ntg is stale user group information'",



More information about the tex-live-commits mailing list.