texlive[60078] Master/texmf-dist: circuitikz (26jul21)
commits+karl at tug.org
commits+karl at tug.org
Mon Jul 26 22:30:11 CEST 2021
Revision: 60078
http://tug.org/svn/texlive?view=revision&revision=60078
Author: karl
Date: 2021-07-26 22:30:11 +0200 (Mon, 26 Jul 2021)
Log Message:
-----------
circuitikz (26jul21)
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/doc/latex/circuitikz/ctikzmanutils.sty
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
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-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md 2021-07-26 20:30:11 UTC (rev 60078)
@@ -1,6 +1,15 @@
<!--- 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.2 (2021-07-26)
+
+ This is a minor release, containing just a new component and a
+ small set of fixes (mainly in the documentation).
+
+ - add the `cpe` (constant phase element)
+ - correct minor errors in the manual (capacitor's fill, spaces)
+ and the code.
+
* Version 1.4.1 (2021-07-14)
This version has an important bug fix for label positioning when once-relative style coordinates are used (the ones with a single `+`, like `+(1,1)`.
@@ -8,7 +17,7 @@
- Added the generic tunable macro
- Added `no v symbols` (and also for `i` and `f`), thanks to a [head-up by user judober on GitHub](https://github.com/circuitikz/circuitikz/issues/567), see also [issue 448](https://github.com/circuitikz/circuitikz/issues/448)
- - Fixed [label position for +() style coordinates](https://github.com/circuitikz/circuitikz/issues/569)
+ - Fixed [label position for +() style coordinates](https://github.com/circuitikz/circuitikz/issues/569)
* Version 1.4.0 (2021-07-06)
Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex 2021-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/changelog.tex 2021-07-26 20:30:11 UTC (rev 60078)
@@ -5,6 +5,20 @@
\begin{itemize}
\item
+ Version 1.4.2 (2021-07-26)
+
+ This is a minor release, containing just a new component and a small
+ set of fixes (mainly in the documentation).
+
+ \begin{itemize}
+ \tightlist
+ \item
+ add the \texttt{cpe} (constant phase element)
+ \item
+ correct minor errors in the manual (capacitor's fill, spaces) and
+ the code.
+ \end{itemize}
+\item
Version 1.4.1 (2021-07-14)
This version has an important bug fix for label positioning when
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-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex 2021-07-26 20:30:11 UTC (rev 60078)
@@ -2087,12 +2087,13 @@
\subsubsection{Capacitors}
\begin{groupdesc}
- \circuitdescbip{capacitor}{Capacitor}{C}
- \circuitdescbip[ccapacitor]{curved capacitor}{Curved (polarized) capacitor}{cC}
+ \circuitdescbip*{capacitor}{Capacitor}{C}
+ \circuitdescbip*[ccapacitor]{curved capacitor}{Curved (polarized) capacitor}{cC}
\circuitdescbip*{ecapacitor}{Electrolytic capacitor}{eC,elko}
- \circuitdescbip[vcapacitor]{variable capacitor}{Variable capacitor}{vC}
- \circuitdescbip[capacitivesens]{capacitive sensor}{Capacitive sensor}{sC}(label/0/0.3)
+ \circuitdescbip*[vcapacitor]{variable capacitor}{Variable capacitor}{vC}
+ \circuitdescbip*[capacitivesens]{capacitive sensor}{Capacitive sensor}{sC}(label/0/0.3)
\circuitdescbip*{piezoelectric}{Piezoelectric Element}{PZ}
+ \circuitdescbip*{cpe}{Constant Phase Element}{cpe}
\circuitdescbip*[ferrocap]{feC}{Ferroelectric capacitor\footnotemark}{ferrocap}(kink left/180/0.2, kink right/0/0.2, curve left/160/0.3, curve right/-20/0.2, center/45/0.3)
\footnotetext{suggested by \href{https://github.com/circuitikz/circuitikz/issues/515}{Mayeul Cantan}}
\end{groupdesc}
@@ -2127,8 +2128,17 @@
Variable capacitors arrow tips follow the settings of resistors, see section~\ref{sec:tunablearrows}.
-The relative size of the capacitors is a bit of a mixed bag, because each one has historically different internal parameters that makes maintaining coherence quite difficult. In \texttt{v1.4.1} this has changed and now you can use styling options to change the way the capacitors look. The main parameter you can set is \texttt{capacitors/width} (default \texttt{0.2}), which controls the standard distance between plates. That will change all the components (notice that the \texttt{piezoelectric} component is twice the size of a standard capacitor).
+The relative size of the capacitors is a bit of a mixed bag, because each one has historically different internal parameters that makes maintaining coherence quite difficult. In \texttt{v1.4.1} this has changed and now you can use styling options to change the way the capacitors look. The main parameter you can set is \texttt{capacitors/width} (default \texttt{0.2}), which controls the standard distance between plates. That will change all the components (notice that \texttt{piezoelectric} and \texttt{cpe} default width is twice the size of a standard capacitor --- although this is not evident for the \texttt{cpe} given its shape.)
+\begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily]
+\begin{circuitikz}[european]
+ \draw (0,1) to[C=aaa] ++(2,0) to[cpe=bbb] ++(2,0);
+ \draw[color=red] (0,0) to [C] ++(2,0);
+ \draw[color=blue] (0,0) to [cpe] ++(2,0)
+ to[cpe, fill=yellow, capacitors/width=0.1] ++(2,0);
+\end{circuitikz}
+\end{LTXexample}
+
The \texttt{capacitors/height} key is available also to set the height of the capacitor; the default is \texttt{0.6} for most of the capacitors, but \texttt{0.5} for electrolytic ones and \texttt{0.7} for piezoelectric. When used, it will set all of them at the same value, which is a good thing.
If you want that only a specific kind of capacitor has a different value for a key, you can always use a style which will have a local scope, as in the following example.
Modified: trunk/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty 2021-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty 2021-07-26 20:30:11 UTC (rev 60078)
@@ -106,7 +106,7 @@
}
%% New circuit description macros
\newcommand{\twopartbox}[2]{%
- \leavevmode\null\par\noindent\fbox{\parbox[c]{0.3\linewidth}{#1} \parbox[c]{0.6\linewidth}{\raggedright #2}\par\noindent}%
+ \leavevmode\null\par\noindent\fbox{\parbox[c]{0.3\linewidth}{#1} \parbox[c]{0.6\linewidth}{\RaggedRight #2}\par\noindent}%
}
% filling color for filled-enabled component
\colorlet{fillcol}{cyan!30!white}
@@ -142,7 +142,7 @@
\foreach \n/\a/\d in {#7} \path(N-\n) \showcoordb(N-\n)<\a:\d>;
}
\end{circuitikz}%
- }{\sloppy%
+ }{\sloppy
{#4, type: node\IfBooleanT{#1}{, fillable}%
} (\texttt{node[\detokenize{#3}]\IfValueT{#7}{(N)}\{\detokenize{#5}\}}). \index{#3}%
\checkclass{N}%
@@ -157,7 +157,7 @@
% optional between []: internal nodes specification list
% 1 2 3 4 5 6 7 8
\NewDocumentCommand{\circuitdescbip}{s o m d<> m m d() d[]}
-{
+{%
\index{#3} \tikz\foreach \i in {#6} {\index{\i|see{#3}} };
\twopartbox{%
\begin{circuitikz}
@@ -173,16 +173,15 @@
\foreach \n/\a/\d in {#8} \path(B-\n) \showcoordb(B-\n)<\a:\d>;
}
\end{circuitikz}%
- }{\sloppy%
+ }{\sloppy
\texttt{\textbf{#3}}: #5, \texttt{type: path-style\IfBooleanT{#1}{, fillable}%
\IfValueT{#8}{, \texttt{name=B}}%
- \IfValueTF{#4}{, nodename: #4.}{
+ \IfValueTF{#4}{, nodename: #4.}{%
\IfValueTF{#2}{, nodename: #2shape.%\drawphantomshape{#2shape}%
}{, nodename: #3shape.%\drawphantomshape{#3shape}%
}}%
}%
- \ifthenelse{\equal{#6}{}}{ }{%
- Aliases: \texttt{#6}. }\checkclass{B}%
+ \ifthenelse{\equal{#6}{}}{ }{ Aliases: \texttt{#6}. }\checkclass{B}%
}%
}
Modified: trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
===================================================================
--- trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex 2021-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex 2021-07-26 20:30:11 UTC (rev 60078)
@@ -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.1}
-\def\pgfcircversiondate{2021/07/14}
+\def\pgfcircversion{1.4.2}
+\def\pgfcircversiondate{2021/07/26}
\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-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircbipoles.tex 2021-07-26 20:30:11 UTC (rev 60078)
@@ -736,8 +736,12 @@
\ctikzset{bipoles/vcapacitor/capacitor width/.code={%
\pgfutil at packagewarning{circuitikz}{vcapacitor/capacitor width deprecated; ignored}%
}}% deprecated
+% piezoelectric (double size by default)
\ctikzset{bipoles/piezoelectric/height/.initial=.7}
\ctikzset{bipoles/piezoelectric/width/.initial=.4}%
+% constant phase element (double size by default)
+\ctikzset{bipoles/cpe/height/.initial=.6}
+\ctikzset{bipoles/cpe/width/.initial=.4}
%
% style settings
%
@@ -747,6 +751,7 @@
capacitor/width=#1, ecapacitor/width=#1, ccapacitor/width=#1,
vcapacitor/width=#1,
piezoelectric/width=\pgfcirc@@double,
+ cpe/width=\pgfcirc@@double,
}}}
\ctikzset{capacitors/height/.code={%
\ctikzset{bipoles/.cd,
@@ -753,6 +758,7 @@
capacitor/height=#1, ecapacitor/height=#1, ccapacitor/height=#1,
vcapacitor/height=#1,
piezoelectric/height=#1,
+ cpe/height=#1,
}}}
\def\pgfcirc at maybe@fill at straight@capacitor{%
\pgfscope
@@ -1017,6 +1023,39 @@
\endpgfscope
}
+%% Constant phase element
+\pgfcircdeclarebipolescaled{capacitors}
+{}
+{\ctikzvalof{bipoles/cpe/height}}
+{cpe}
+{\ctikzvalof{bipoles/cpe/height}}
+{\ctikzvalof{bipoles/cpe/width}}
+{
+ \pgfscope
+ \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at up}}
+ \pgfpathlineto{\pgfpointorigin}
+ \pgfpathlineto{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at down}}
+ \pgfpathlineto{\pgfpoint{0pt}{\pgf at circ@res at down}}
+ \pgfpathlineto{\pgfpoint{\pgf at circ@res at right}{0pt}}
+ \pgfpathlineto{\pgfpoint{0pt}{\pgf at circ@res at up}}
+ \pgfpathclose
+ \pgf at circ@maybefill
+ \endpgfscope
+
+ \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{0pt}}
+ \pgfpathlineto{\pgfpointorigin}
+ \pgfusepath{draw}
+ \pgf at circ@setlinewidth{bipoles}{\pgfstartlinewidth}
+ \pgfpathmoveto{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at up}}
+ \pgfpathlineto{\pgfpointorigin}
+ \pgfpathlineto{\pgfpoint{\pgf at circ@res at left}{\pgf at circ@res at down}}
+
+ \pgfpathmoveto{\pgfpoint{0pt}{\pgf at circ@res at up}}
+ \pgfpathlineto{\pgfpoint{\pgf at circ@res at right}{0pt}}
+ \pgfpathlineto{\pgfpoint{0pt}{\pgf at circ@res at down}}
+ \pgfusepath{draw}
+}
+
% %>>>
%% Paths for capacitors%<<<
@@ -1038,6 +1077,7 @@
\pgfcirc at style@to at style{capacitive sensor}{sC}
\pgfcirc at activate@bipole at simple{l}{ferrocap}
\pgfcirc at style@to at style{ferrocap}{feC}
+\pgfcirc at activate@bipole at simple{l}{cpe}
% %>>>
%%%%%%%%%%%%%%%
Modified: trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
===================================================================
--- trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex 2021-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex 2021-07-26 20:30:11 UTC (rev 60078)
@@ -96,7 +96,7 @@
%% changes suggested by Jonathan P. Spratte
%%
\newbox\ctikz at scratchbox
-\long\def\ctikzsubcircuitdef#1#2#3{%
+\pgfutil at protected\def\ctikzsubcircuitdef#1#2#3{%
\expandafter\gdef\csname #1 at Anchor\endcsname{}%
\expandafter\gdef\csname #1 at setanchors\endcsname{%
\setbox\ctikz at scratchbox=\hbox{%
Modified: trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty 2021-07-26 20:29:50 UTC (rev 60077)
+++ trunk/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty 2021-07-26 20:30:11 UTC (rev 60078)
@@ -16,8 +16,8 @@
\providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
-\def\pgfcircversion{1.4.1}
-\def\pgfcircversiondate{2021/07/14}
+\def\pgfcircversion{1.4.2}
+\def\pgfcircversiondate{2021/07/26}
\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.