summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/circuitikz
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-07-26 20:30:11 +0000
committerKarl Berry <karl@freefriends.org>2021-07-26 20:30:11 +0000
commit502c831e427186b6216c2e8a0d46453b013e345f (patch)
treef1f9c18327df63f72f564cb8a4bf7a0c2add76de /Master/texmf-dist/doc/latex/circuitikz
parent6190adeb5ec3b9128a55a4add7f367f18491742b (diff)
circuitikz (26jul21)
git-svn-id: svn://tug.org/texlive/trunk@60078 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/circuitikz')
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/changelog.tex14
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdfbin1441257 -> 1440146 bytes
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex20
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty13
4 files changed, 35 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
index ceccd2d6a08..508a25d9fe4 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
+++ b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
@@ -5,6 +5,20 @@ full list of changes.
\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
diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
index 0f13dab3cfb..ce0a14da3fd 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
+++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
index d2d3ee394b1..8de6e6209f5 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
+++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
@@ -2087,12 +2087,13 @@ You can change that globally or locally, as ever. The tip specification is the o
\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,7 +2128,16 @@ You can change the scale of the capacitors by setting the key \texttt{capacitors
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.
diff --git a/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty b/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
index 3c5b38eb28c..68b1bd37b75 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
+++ b/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
@@ -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}%
}%
}