texlive[71354] Master/texmf-dist: circuitikz (25may24)

commits+karl at tug.org commits+karl at tug.org
Sat May 25 21:35:10 CEST 2024


Revision: 71354
          https://tug.org/svn/texlive?view=revision&revision=71354
Author:   karl
Date:     2024-05-25 21:35:09 +0200 (Sat, 25 May 2024)
Log Message:
-----------
circuitikz (25may24)

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/pgfcirctripoles.tex
    trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty

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	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md	2024-05-25 19:35:09 UTC (rev 71354)
@@ -1,6 +1,16 @@
 <!--- 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.6.9 (2024-05-25)
+
+    Several new components and a bug fix for a nasty long-standing bug about switching diode types.
+
+    - Added a Relais-Shape (contributed by [Jakob "DraUX" on GitHub](https://github.com/circuitikz/circuitikz/pull/795)
+    - Added a center tap anchor for tube filament (suggested by [user bogger33 on GitHub](https://github.com/circuitikz/circuitikz/issues/792))
+    - Added neon lamps (two versions, suggested by [user bogger33 on GitHub](https://github.com/circuitikz/circuitikz/issues/793))
+    - Added a configurable spark gap (suggested by [user bogger33 on GitHub](https://github.com/circuitikz/circuitikz/issues/800))
+    - Fix a long-standing problem when [(locally) switching diode type](https://github.com/circuitikz/circuitikz/issues/794)
+
 * Version 1.6.8 (2024-05-05)
 
     Several new components, more anchors, a bit of documentation enhancement; maybe the biggest change is the new "flexible" tube.

Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex	2024-05-25 19:35:09 UTC (rev 71354)
@@ -5,6 +5,35 @@
 
 \begin{itemize}
 \item
+  Version 1.6.9 (2024-05-25)
+
+  Several new components and a bug fix for a nasty long-standing bug
+  about switching diode types.
+
+  \begin{itemize}
+  \tightlist
+  \item
+    Added a Relais-Shape (contributed by
+    \href{https://github.com/circuitikz/circuitikz/pull/795}{Jakob
+    ``DraUX'' on GitHub}
+  \item
+    Added a center tap anchor for tube filament (suggested by
+    \href{https://github.com/circuitikz/circuitikz/issues/792}{user
+    bogger33 on GitHub})
+  \item
+    Added neon lamps (two versions, suggested by
+    \href{https://github.com/circuitikz/circuitikz/issues/793}{user
+    bogger33 on GitHub})
+  \item
+    Added a configurable spark gap (suggested by
+    \href{https://github.com/circuitikz/circuitikz/issues/800}{user
+    bogger33 on GitHub})
+  \item
+    Fix a long-standing problem when
+    \href{https://github.com/circuitikz/circuitikz/issues/794}{(locally)
+    switching diode type}
+  \end{itemize}
+\item
   Version 1.6.8 (2024-05-05)
 
   Several new components, more anchors, a bit of documentation

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	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex	2024-05-25 19:35:09 UTC (rev 71354)
@@ -3266,6 +3266,8 @@
     \circuitdescbip*{fuse}{Fuse}{}
     \circuitdescbip*{afuse}{Asymmetric fuse}{asymmetric fuse}
     \circuitdescbip{wfuse}{``wiggly'' fuse}{wiggly fuse}()[left/110/0.2, right/70/0.2]
+    \circuitdescbip*{relais}{Relais\footnotemark}{}
+    \footnotetext{Contributed by \href{https://github.com/circuitikz/circuitikz/pull/795}{Jakob «DraUX»}}
     \circuitdescbip{squid}{Squid}{}
     \circuitdescbip{barrier}{Barrier}{}
     \circuitdescbip{openbarrier}{Open barrier}{}
@@ -3287,6 +3289,13 @@
 \begin{groupdesc}
     \circuitdescbip*{lamp}{Lamp}{}
     \circuitdescbip*{bulb}{Bulb}{}
+    \circuitdescbip*{neonlampcc}{Neon lamp\footnotemark\ (double cathode style)}{}
+     \footnotetext{The neon lamps have been added in \texttt{v1.6.9}  thanks to a suggestion by \href{https://github.com/circuitikz/circuitikz/issues/793}{user bogger33 on GitHub}.}
+    \circuitdescbip*{neonlampac}{Neon lamp (anode and cathode style)}{}
+    \circuitdescbip*{sparkgap}{Spark gap\footnotemark (unenclosed)}{}
+     \footnotetext{The spark gap has been added in \texttt{v1.6.9}  thanks to a suggestion by \href{https://github.com/circuitikz/circuitikz/issues/800}{user bogger33 on GitHub}.}
+     \circuitdescbip*[sparkgap]{sparkgap, sparkgap/circle}{Spark gap}{}
+    \circuitdescbip*[sparkgap]{sparkgap, sparkgap/dot, sparkgap/circle}{Spark gap (gas filled)}{}
     \circuitdescbip*{loudspeaker}{loudspeaker}{}( north/90/0.4, ne/45/0.4, east/0/0.4, se/-45/0.4, south/-90/0.4, sw/-135/0.4, west/180/0.4, nw/135/0.4, left/135/0.2, right/45/0.2, center/-135/0.2)
     \circuitdescbip*{mic}{mic}{}( north/90/0.4, east/0/0.4,  south/-90/0.4,  west/180/0.4, left/135/0.2, right/45/0.2, center/-135/0.2)
     \circuitdescbip*{tlmic}{tail-less mic\footnotemark}{}( north/90/0.4,  east/0/0.4,  south/-90/0.4, west/180/0.4,  left/135/0.2, right/45/0.2, center/-135/0.2)
@@ -3324,9 +3333,9 @@
 
 \subsubsection{Miscellaneous element customization}\label{sec:tweak-misc}
 
-You can change the scale of all the miscellaneous elements by setting the key \texttt{misc/scale} to something different from the default \texttt{1.0}.
+You can change the scale of all the miscellaneous elements by setting the key \texttt{misc/scale} to something different from the default \texttt{1.0}; relative thickness can be controlled with \texttt{misc/thickness}.
 
-\paragraph{Wiggly fuses} can have (or not have) poles; you can switch between the two forms by setting to \texttt{true} or \texttt{false} (default \texttt{true}) the key \texttt{bipoles/wfuse/dots}; if they have poles, you can choose any of the pole shapes with the key \texttt{bipoles/wfuse/shape}.
+\paragraph{Wiggly fuses.} Wiggly fuses can have (or not have) poles; you can switch between the two forms by setting to \texttt{true} or \texttt{false} (default \texttt{true}) the key \texttt{bipoles/wfuse/dots}; if they have poles, you can choose any of the pole shapes with the key \texttt{bipoles/wfuse/shape}.
 The pole nodes are named \texttt{-left} and \texttt{-right} so that you can access their borders.
 
 \begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily]
@@ -3342,6 +3351,30 @@
 \end{circuitikz}
 \end{LTXexample}
 
+\paragraph{Neon lamps.} Neon lamp ``dot'' size is the same as the size of poles (\texttt{circ} and \texttt{ocirc}), and they can be changed locally:
+\begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily]
+\begin{tikzpicture}
+    \draw (0,0) to[neonlampcc, nodes width=0.03] ++(2,0)
+        to[neonlampac, misc/thickness=3] ++(2,0);
+\end{tikzpicture}
+\end{LTXexample}
+
+\paragraph{Spark gap.} The \texttt{sparkgap} component is similar to the (American) surge arrester, but it's more configurable; it will render bare (unenclosed) by default, but you can add a (fillable) enclosure with the key \texttt{sparkgap/circle} and a dot with \texttt{sparkgap/dot} (they are boolean keys, false by default).
+Moreover, the arrows are configurable like other arrows in the package (see~\ref{sec:tunablearrows}) using the \texttt{sparkgap end arrow} key (default \texttt{Triangle[scale=2]}). The gap is tunable with \texttt{sparkgap/gap} (default \texttt{0.05}).
+\begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily]
+\begin{tikzpicture}
+    \draw (0,2) to[sparkgap, l=gap\textsubscript{1}] ++(2,0)
+         to[sparkgap, sparkgap/circle,
+            sparkgap/dot, l=S2] ++(2,0);
+     \ctikzset{sparkgap end arrow={Kite[scale=1.5]}}
+     \draw (0,0) to[sparkgap, l=S3] ++(2,0)
+         to[sparkgap, l=S4, sparkgap/circle,
+         sparkgap/gap=0.15] ++(2,0);
+\end{tikzpicture}
+\end{LTXexample}
+As in neon lamps, the dot (if activated by the key \texttt{sparkgap/dot}) follows the size of poles and can be changed locally.
+
+
 \subsection{Multiple wires (buses)}
 
 These are simple drawings to indicate multiple wires.
@@ -4827,7 +4860,8 @@
 Normally, the filament is not drawn. If you want a filament, put the \verb|filament| option in the node description:
 
 \begin{groupdesc}
-	\circuitdesc*{diodetube,filament}{Tube Diode}{}(anode/90/0.2, filament 1/-135/0.2, filament 2/-45/0.2 )
+    \circuitdesc*{diodetube,filament}{Tube Diode\footnotemark}{}(anode/90/0.2, filament 1/-90/0.4, filament 2/-45/0.2, filament center/0/0.5 )
+    \footnotetext{The \texttt{filament center} anchor has been added in \texttt{v1.6.9}  thanks to a suggestion by \href{https://github.com/circuitikz/circuitikz/issues/792}{user bogger33 on GitHub}.}
 \end{groupdesc}
 
 Sometimes, you don't want the cathode to be drawn (but you do want the filament). Use the \verb|nocathode| option in the node description:
@@ -4869,18 +4903,27 @@
   \verb|tubes/filament angle| & \verb|15|          & angle from the centerpoint   \\
 \end{tabular}
 
-Conventionally, the model of the tube is indicated at the \verb|east| anchor:
+Conventionally, the model of the tube is indicated at the \verb|east| anchor, and you can access filament anchors if you need them:
 
-\begin{LTXexample}[varwidth]
-\ctikzset{tubes/width=1.4}
-\ctikzset{tubes/height=1}
 
+\begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily]
+\ctikzset{tubes/width=1.4, tubes/height=1}
 \begin{circuitikz}
-\draw (0,0) node[triode] (Tri) {};
-\draw  (Tri.east) node[right] {12AX7};
-\end{circuitikz}
+    \draw (0,2) node[triode, filament] (Tri) {};
+    \draw  (Tri.east) node[right] {12AX7};
+    \ctikzset{tubes/filament angle=40,
+        tubes/filament distance=0.2}
+    \draw (0,0) node[triode, filament] (Pent) {};
+    \draw  (Pent.east) node[right] {BOH};
+    \path (Tri.filament 1) node[red,ocirc]{};
+    \path (Pent.filament 1) node[red,ocirc]{};
+    \path (Tri.filament center) node[blue,ocirc]{};
+    \draw (Pent.filament center) -- ++(0,-1) node[tlground]{};
+    \end{circuitikz}
 \end{LTXexample}
 
+
+
 Example triode amplifier:
 
 \begin{lstlisting}

Modified: trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex	2024-05-25 19:35:09 UTC (rev 71354)
@@ -16,8 +16,8 @@
 \startmodule[circuitikz]
 \usemodule[tikz]
 
-\def\pgfcircversion{1.6.8}
-\def\pgfcircversiondate{2024/05/05}
+\def\pgfcircversion{1.6.9}
+\def\pgfcircversiondate{2024/05/25}
 \writestatus{loading}{\pgfcircversiondate{} The CircuiTikz circuit drawing package version \pgfcircversion}
 
 

Modified: trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex	2024-05-25 19:35:09 UTC (rev 71354)
@@ -3696,9 +3696,9 @@
 \pgf at circuit@fulldiodefalse
 
 \ctikzset{diode/.is choice}
-\ctikzset{diode/empty/.code = \pgf at circuit@fulldiodefalse\pgf at circuit@strokediodefalse}%default
-\ctikzset{diode/full/.code = \pgf at circuit@fulldiodetrue }
-\ctikzset{diode/stroke/.code = \pgf at circuit@strokediodetrue}
+\ctikzset{diode/empty/.code =  \pgf at circuit@fulldiodefalse\pgf at circuit@strokediodefalse}%default
+\ctikzset{diode/full/.code =   \pgf at circuit@fulldiodetrue\pgf at circuit@strokediodefalse}
+\ctikzset{diode/stroke/.code = \pgf at circuit@fulldiodefalse\pgf at circuit@strokediodetrue}
 
 \tikzset{full diodes/.style = { \circuitikzbasekey/diode = full}}
 \tikzset{empty diodes/.style = { \circuitikzbasekey/diode = empty}}
@@ -6977,7 +6977,7 @@
 \ctikzset{bipoles/tlmic/width/.initial=.5}% it MUST be mic width *5/8
 \ctikzset{bipoles/mic/bar thickness/.initial=1}
 
-% arresters, fuses, lamps, etc
+% arresters, fuses, relais, lamps, etc
 
 \ctikzset{bipoles/european gas filled surge arrester/height/.initial=.30}
 \ctikzset{bipoles/european gas filled surge arrester/width/.initial=.80}
@@ -6994,6 +6994,7 @@
 \ctikzset{bipoles/afuse/height/.initial=.20}
 \ctikzset{bipoles/afuse/width/.initial=.50}
 \ctikzset{bipoles/lamp/height/.initial=.60}
+\ctikzset{bipoles/lamp/width/.initial=.60}
 \ctikzset{bipoles/wfuse/height/.initial=.20}
 \ctikzset{bipoles/wfuse/width/.initial=.50}
 \ctikzset{bipoles/wfuse/shape/.initial=ocirc}
@@ -7001,9 +7002,22 @@
 \ctikzset{bipoles/wfuse/dots/.is choice}
 \ctikzset{bipoles/wfuse/dots/.is if=pgf at circ@wfuse at dots}
 %
-\ctikzset{bipoles/lamp/width/.initial=.60}
+\ctikzset{bipoles/relais/height/.initial=.8}
+\ctikzset{bipoles/relais/width/.initial=.3}
+%
 \ctikzset{bipoles/bulb/height/.initial=.8}
 \ctikzset{bipoles/bulb/width/.initial=.8}
+% suggested by @bogger33, see https://github.com/circuitikz/circuitikz/issues/793
+\ctikzset{bipoles/neonlampcc/height/.initial=.60}
+\ctikzset{bipoles/neonlampac/height/.initial=.60}
+\pgf at circ@declare at family@arrows{sparkgap}
+\newif\ifpgf at sparkgap@dot
+\newif\ifpgf at sparkgap@circle
+\ctikzset{sparkgap/circle/.is if=pgf at sparkgap@circle}
+\ctikzset{sparkgap/dot/.is if=pgf at sparkgap@dot}
+\ctikzset{sparkgap/gap/.initial=.05}
+\ctikzset{bipoles/sparkgap/height/.initial=.60}
+%
 \ctikzset{bipoles/squid/height/.initial=.60}
 \ctikzset{bipoles/squid/width/.initial=.60}
 \ctikzset{bipoles/barrier/height/.initial=.60}
@@ -7233,6 +7247,25 @@
         \pgfnode{\cshape}{center}{}{\thisshape-right}{\pgfusepath{draw}}
     \fi
 }
+
+%% Relais
+\pgfcircdeclarebipolescaled{misc}
+{}
+{\ctikzvalof{bipoles/relais/height}}
+{relais}
+{\ctikzvalof{bipoles/relais/height}}
+{\ctikzvalof{bipoles/relais/width}}
+{
+	\pgfpathrectanglecorners{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at up}}{\pgfpoint{\pgf at circ@res at right}{\pgf at circ@res at down}}
+	\pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+	\pgf at circ@draworfill
+	\pgfscope
+	\pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at up}}
+	\pgfpathlineto{\pgfpoint{\pgf at circ@res at right}{\pgf at circ@res at down}}
+	\pgfusepath{draw}
+	\endpgfscope
+}
+
 %% SQUID added by Cor Molenaar 5 March 2010
 \pgfcircdeclarebipolescaled{misc}
 {}
@@ -7340,11 +7373,116 @@
     \pgfsetbeveljoin
     \pgfpathlineto{\pgfpoint{\pgf at circ@res at right}{\pgf at circ@res at zero}}
     \pgfusepath{draw}
-}% %>>>
+}%
+% neon lamps, suggested by @bogger33 https://github.com/circuitikz/circuitikz/issues/793
+% implemented by Romano
+% double-cathode (capacitor) style
+\pgfcircdeclarebipolescaled{misc}
+{}
+{\ctikzvalof{bipoles/neonlampcc/height}}
+{neonlampcc}
+{\ctikzvalof{bipoles/neonlampcc/height}}
+{\ctikzvalof{bipoles/neonlampcc/height}}
+{
+    \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+    \pgfpathellipse{\pgfpointorigin}{\pgfpoint{0}{\pgf at circ@res at up}}{\pgfpoint{\pgf at circ@res at left}{0}}
+    \pgf at circ@draworfill
+    %% leads in
+    \pgfsetlinewidth{\pgfstartlinewidth}
+    \def\@@w{0.2}\def\@@h{0.6}
+    \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{0pt}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at left}{0pt}}
+    \pgfpathmoveto{\pgfpoint{\pgf at circ@res at right}{0pt}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at right}{0pt}}
+    %% "capacitor style" symbol
+    \pgfusepath{draw}
+    \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+    \pgfpathmoveto{\pgfpoint{\@@w\pgf at circ@res at right}{\@@h\pgf at circ@res at down}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at right}{\@@h\pgf at circ@res at up}}
+    \pgfpathmoveto{\pgfpoint{\@@w\pgf at circ@res at left}{\@@h\pgf at circ@res at down}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at left}{\@@h\pgf at circ@res at up}}
+    \pgfusepath{draw}
+    %% dot
+    \pgftransformshift{\pgfpoint{\@@w\pgf at circ@res at left-3*\ctikzvalof{nodes width}\pgf at circ@Rlen}
+        {\@@h\pgf at circ@res at down + 2*\ctikzvalof{nodes width}\pgf at circ@Rlen}}
+    \pgfnode{circ}{center}{}{}{\pgfusepath{draw,fill}}
+}
+% anode-cathode style
+\pgfcircdeclarebipolescaled{misc}
+{}
+{\ctikzvalof{bipoles/neonlampac/height}}
+{neonlampac}
+{\ctikzvalof{bipoles/neonlampac/height}}
+{\ctikzvalof{bipoles/neonlampac/height}}
+{
+    \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+    \pgfpathellipse{\pgfpointorigin}{\pgfpoint{0}{\pgf at circ@res at up}}{\pgfpoint{\pgf at circ@res at left}{0}}
+    \pgf at circ@draworfill
+    %% leads in
+    \pgfsetlinewidth{\pgfstartlinewidth}
+    \def\@@w{0.5}\def\@@h{0.5}
+    \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{0pt}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at left}{0pt}}
+    \pgfpathmoveto{\pgfpoint{\pgf at circ@res at right}{0pt}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at right}{0pt}}
+    \pgfusepath{draw}
+    %% one terminal is a straight plate
+    \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+    \pgfpathmoveto{\pgfpoint{\@@w\pgf at circ@res at left}{\@@h\pgf at circ@res at down}}
+    \pgfpathlineto{\pgfpoint{\@@w\pgf at circ@res at left}{\@@h\pgf at circ@res at up}}
+    \pgfusepath{draw}
+    %% the other is an "ocirc" shape
+    \pgftransformshift{\pgfpoint{\@@w\pgf at circ@res at right}{0pt}}
+    \pgfnode{ocirc}{center}{}{}{\pgfusepath{draw,fill}}
+    %% dot
+    \pgftransformshift{\pgfpoint{-\@@w\pgf at circ@res at right}{\@@h\pgf at circ@res at down}}
+    \pgfnode{circ}{center}{}{}{\pgfusepath{draw,fill}}
+}
+% spark gap, suggested by @bogger33 https://github.com/circuitikz/circuitikz/issues/800
+\pgfcircdeclarebipolescaled{misc}
+{
+    \savedmacro{\changeh}{\edef\changeh{\ifpgf at sparkgap@circle 1 \else 0.5 \fi}}
+    \pgfcirc at border@extend at updown{\changeh}{\changeh}
+}
+{\ctikzvalof{bipoles/sparkgap/height}}
+{sparkgap}
+{\ctikzvalof{bipoles/sparkgap/height}}
+{\ctikzvalof{bipoles/sparkgap/height}}{
+    % circle (if requested)
+    \pgfscope
+        \ifpgf at sparkgap@circle
+            \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+            \pgfpathcircle{\pgfpointorigin}{\pgf at circ@res at up}
+            \pgf at circ@draworfill
+        \fi
+    \endpgfscope
+    % arrows
+    \pgfscope
+        \pgfcirc at set@arrows{sparkgap}{}{Triangle[scale=2]}
+        \pgfpathmoveto{\pgfpoint{\pgf at circ@res at right}{0pt}}
+        \pgfpathlineto{\pgfpoint{\ctikzvalof{sparkgap/gap}\pgf at circ@res at right}{0pt}}
+        \pgfusepath{draw}
+        \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{0pt}}
+        \pgfpathlineto{\pgfpoint{\ctikzvalof{sparkgap/gap}\pgf at circ@res at left}{0pt}}
+        \pgfusepath{draw}
+    \endpgfscope{}
+    % dot (if requested)
+    \ifpgf at sparkgap@dot
+        \pgftransformshift{\pgfpoint
+            {\ctikzvalof{sparkgap/gap}\pgf at circ@res at left-1*\ctikzvalof{nodes width}\pgf at circ@Rlen}
+            {-4*\ctikzvalof{nodes width}\pgf at circ@Rlen}}
+        \pgfnode{circ}{center}{}{}{\pgfusepath{draw,fill}}
+    \fi
+}
 
+%>>>
+
 %% Path definitions for Miscellaneous%<<<
 
 \pgfcirc at activate@bipole at simple{l}{lamp}
+\pgfcirc at activate@bipole at simple{l}{neonlampcc}
+\pgfcirc at activate@bipole at simple{l}{neonlampac}
+\pgfcirc at activate@bipole at simple{l}{sparkgap}
 \pgfcirc at activate@bipole at simple{l}{bulb}
 \pgfcirc at activate@bipole at simple{l}{squid}
 \pgfcirc at activate@bipole at simple{l}{barrier}
@@ -7355,6 +7493,7 @@
 \pgfcirc at style@to at style{asymmetric fuse}{afuse}
 \pgfcirc at activate@bipole at simple{l}{wfuse}
 \pgfcirc at activate@bipole{l}{wfuse}{wfuse}{wiggly fuse}
+\pgfcirc at activate@bipole at simple{l}{relais}
 \def\pgf at circ@gfsurgearrester at path#1{\ifpgf at circuit@europeangfsurgearrester\pgf at circ@europeangfsurgearrester at path{#1}\else\pgf at circ@americangfsurgearrester at path{#1}\fi}
 \pgfcirc at activate@bipole{l}{europeangfsurgearrester}{european gas filled surge arrester}{european gas filled surge arrester}
 \pgfcirc at activate@bipole{l}{americangfsurgearrester}{american gas filled surge arrester}{american gas filled surge arrester}

Modified: trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcirctripoles.tex	2024-05-25 19:35:09 UTC (rev 71354)
@@ -4025,6 +4025,8 @@
         \pgfmathsetmacro{\@@BDscale}{\ctikzvalof{tripoles/#1/bodydiode scale}* \ctikzvalof{\ctikzclass/scale}/\ctikzvalof{diodes/scale}}
         \pgftransformscale{\@@BDscale}
         \ifpgf at circuit@fulldiode
+            % I'm not sure why this is needed, but...
+            \pgf at circ@maybe at color{transistor bodydiode/color}
             \pgfnode{fulldiodeshape}{center}{}{pgf at bodydiode}{\pgfusepath{fill}}
         \else
             \pgfnode{emptydiodeshape}{center}{}{pgf at bodydiode}{\pgfusepath{fill}}
@@ -8613,6 +8615,11 @@
                 \pgf at y=\pgf at circ@res at up\advance\pgf at y by -\pgf at circ@res at right
             \fi
         }
+        \savedmacro{\tubes at filament@angle}{\edef\tubes at filament@angle{\ctikzvalof{tubes/filament angle}}}
+        \savedmacro{\tubes at filament@distance}{\edef\tubes at filament@distance{\ctikzvalof{tubes/filament distance}}}
+        \savedmacro{\tubes at tube@radius}{\edef\tubes at tube@radius{\ctikzvalof{tubes/tube radius}}}
+        \savedmacro{\tubes at cathode@width}{\edef\tubes at cathode@width{\ctikzvalof{tubes/cathode width}}}
+        \savedmacro{\tubes at cathode@distance}{\edef\tubes at cathode@distance{\ctikzvalof{tubes/cathode distance}}}
         \anchor{tube ne}{\tubene}
         \anchor{tubesq ne}{\tubesquarene}
         % tube shape anchors: geo
@@ -8647,30 +8654,37 @@
         \anchor{cathode}{%
             \northwest
             \pgf at y=-\pgf at y
-            \pgf at x=\ctikzvalof{tubes/cathode width}\pgf at x
+            \pgf at x=\tubes at cathode@width\pgf at x
         }
         \anchor{cathode 1}{%
             \northwest
             \pgf at y=-\pgf at y
-            \pgf at x=\ctikzvalof{tubes/cathode width}\pgf at x
+            \pgf at x=\tubes at cathode@width\pgf at x
         }
         \anchor{cathode 2}{%
             \northwest
             \pgf at y=-\pgf at y
-            \pgf at x=-\ctikzvalof{tubes/cathode width}\pgf at x
+            \pgf at x=-\tubes at cathode@width\pgf at x
         }
         \anchor{filament 1}{%
             \northwest
-            \pgfmathparse{(\ctikzvalof{tubes/tube radius}*sin(\ctikzvalof{tubes/filament angle})}
+            \pgfmathparse{(\tubes at tube@radius*sin(\tubes at filament@angle)}
             \pgf at x=\pgfmathresult\pgf at x
             \pgf at y=-\pgf at y
         }
         \anchor{filament 2}{%
             \northwest
-            \pgfmathparse{(\ctikzvalof{tubes/tube radius}*sin(\ctikzvalof{tubes/filament angle})}
+            \pgfmathparse{(\tubes at tube@radius*sin(\tubes at filament@angle)}
             \pgf at x=-\pgfmathresult\pgf at x
             \pgf at y=-\pgf at y
         }
+        \anchor{filament center}{%
+            \northwest
+            \pgf at ya=0.5\pgf at y
+            \pgf at ya=-\tubes at cathode@distance\pgf at y
+            \advance\pgf at ya by -\tubes at filament@distance\pgf at y
+            \pgf at x=0pt\pgf at y=\pgf at ya
+        }
 
         % Extra anchors
         #2%

Modified: trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty	2024-05-25 17:16:27 UTC (rev 71353)
+++ trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty	2024-05-25 19:35:09 UTC (rev 71354)
@@ -16,8 +16,8 @@
 \providecommand\DeclareRelease[3]{}
 \providecommand\DeclareCurrentRelease[2]{}
 
-\def\pgfcircversion{1.6.8}
-\def\pgfcircversiondate{2024/05/05}
+\def\pgfcircversion{1.6.9}
+\def\pgfcircversiondate{2024/05/25}
 
 \DeclareRelease{0.4}{2012/12/20}{circuitikz-0.4-body.tex}
 \DeclareRelease{v0.4}{2012/12/20}{circuitikz-0.4-body.tex}



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