summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-12-06 21:21:18 +0000
committerKarl Berry <karl@freefriends.org>2021-12-06 21:21:18 +0000
commit438ac7a4b9836c5c799b3b280b0721be1fce338c (patch)
treee8d56ca6363bd656b2159082f9b2fe1d3381211b /Master
parentc9a39911e40d8808eec4167a83a0b3da78d1207c (diff)
circuitikz (6dec21)
git-svn-id: svn://tug.org/texlive/trunk@61231 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdfbin17688 -> 17688 bytes
-rw-r--r--Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md8
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/changelog.tex16
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdfbin1460564 -> 1461547 bytes
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex18
-rw-r--r--Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty2
-rw-r--r--Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex4
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex2
-rw-r--r--Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex13
-rw-r--r--Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty4
10 files changed, 51 insertions, 16 deletions
diff --git a/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf b/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf
index 1ca5e368bfa..a781b6ced2b 100644
--- a/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf
+++ b/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md
index 5dfc2f7f28f..2c8afc75098 100644
--- a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md
+++ b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md
@@ -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.5 (2021-12-06)
+
+ Important fix for ConTeXt users, thanks to @TeXnician for reporting.
+
+ - Fixed an incompatibility introduced with subcircuits that made compilation in ConTeXt fail
+ - Added `\ctikzflip[x][y]` utility macros for ConTeXt too
+ - Fixed stray characters in some Ti*k*Z environment
+
* Version 1.4.4 (2021-10-31)
Normal maintenance release; minor bugs fixed, a new component and a new option. No Halloween component, sorry...
diff --git a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
index b715c12dc0f..3247e63a1c7 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
+++ b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex
@@ -5,6 +5,22 @@ full list of changes.
\begin{itemize}
\item
+ Version 1.4.5 (2021-12-06)
+
+ Important fix for ConTeXt users, thanks to @TeXnician for reporting.
+
+ \begin{itemize}
+ \tightlist
+ \item
+ Fixed an incompatibility introduced with subcircuits that made
+ compilation in ConTeXt fail
+ \item
+ Added \texttt{\textbackslash{}ctikzflip{[}x{]}{[}y{]}} utility
+ macros for ConTeXt too
+ \item
+ Fixed stray characters in some Ti\emph{k}Z environment
+ \end{itemize}
+\item
Version 1.4.4 (2021-10-31)
Normal maintenance release; minor bugs fixed, a new component and a
diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf
index 57f2065ef9b..e1906ae396f 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 79e63594759..8cf24b70db9 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
+++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex
@@ -150,6 +150,8 @@ This package is author-maintained. Permission is granted to copy, distribute and
\tikz \draw (0,0) to[R=$R_1$] (2,0);
\end{LTXexample}
+There is really no support for Plain TeX --- the maintainers are willing to consider patches if somebody is interested.
+
\subsection{Installing a new version of the package.}
The stable version of the package should come with your \LaTeX\ distribution. Downloading the files from CTAN and installing them locally is, unfortunately, a distribution-dependent task and sometime not so trivial. If you search for \texttt{local texmf tree} and the name of your distribution on \url{https://tex.stackexchange.com/} you will find a lot of hints.
@@ -171,8 +173,11 @@ instead of \texttt{circuitikz}. This is also advantageous for ``future resilienc
\item \texttt{siunitx}, if using \texttt{siunitx} option (better \texttt{v2} or newer).
\end{itemize}
+A similar approach for \ConTeXt\ is available, with the file \texttt{t-circuitikzgit.tex}.
+
This manual has been typeset with \Circuitikz{} \pgfcircversion{} (\pgfcircversiondate) on \TikZ{} \pgfversion{} (\pgfversiondate).
+
\subsection{Incompatible packages}
\TikZ's own \texttt{circuit} library, which was based on \Circuitikz, (re?)defines several styles used by this library. In order to have them work together you can use the \texttt{compatibility} package option, which basically prefixes the names of all \Circuitikz\ \texttt{to[]} styles with an asterisk.
@@ -935,7 +940,8 @@ and you will obtain the following diagram with the exact same code (I just remov
% and connect it
% (not up) -- (#1-NOT.in) (#1-NOT.out) |- (#1-AND2.in 2)
% with the new path-style not
- to[inline not] (#1-in |- #1-AND2.in 2) -- (#1-AND2.in 2);
+ to[inline not] (#1-in |- #1-AND2.in 2) -- (#1-AND2.in 2)
+ % no ; to end the path, must add in usage!
}
\newcommand*{\fullcirc}[1][]{%
\begin{circuitikz}
@@ -1070,7 +1076,7 @@ We will change the names of the nodes and the coordinates to be different for an
(#1-FF.pin 3) -- (#1-FF.pin 3 -| #1-AND1.out)
node[and port, anchor=out](#1-AND2){}
(#1-AND1.in 1) to[short, -*] ++(-1,0) coordinate(#1-in)
- to[inline not] (#1-in |- #1-AND2.in 2) -- (#1-AND2.in 2);
+ to[inline not] (#1-in |- #1-AND2.in 2) -- (#1-AND2.in 2)
}
\end{lstlisting}
@@ -1442,11 +1448,11 @@ Mirroring and flipping of node components is obtained by using the \TikZ\ keys \
\end{circuitikz}
\end{LTXexample}
-To simplify this task, \Circuitikz{} when used in \LaTeX{} has three helper macros --- \verb|\ctikzflipx{}|, \verb|\ctikzflipy{}|,
-and \verb|\ctikzflipxy{}|, that can be used to ``un-rotate'' the text of nodes drawn with, respectively,
+To simplify this task, \Circuitikz{} has three helper macros --- \verb|\ctikzflipx{}|,
+\verb|\ctikzflipy{}|, and \verb|\ctikzflipxy{}|, that can be used to ``un-rotate''
+the text of nodes drawn with, respectively,
\texttt{xscale=-1}, \texttt{yscale=-1}, and \texttt{scale=-1} (which is equivalent to
\texttt{xscale=-1, yscale=-1}).
-In other formats they are undefined; contributions to fill the gap are welcome.
\begin{LTXexample}[varwidth=true]
\begin{circuitikz}[scale=0.7, transform shape]
@@ -4000,7 +4006,7 @@ For syntactical convenience standard transistors (not multi-terminal ones) can b
\begin{circuitikz} \draw
(0,0) node[njfet] {1}
(-1,2) to[Tnjfet=2] (1,2)
- to[Tnjfet=3, mirror] (3,2);
+ to[Tnjfet=3, mirror] (3,2)
;\end{circuitikz}
\end{LTXexample}
diff --git a/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty b/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
index 68b1bd37b75..5102bb32fff 100644
--- a/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
+++ b/Master/texmf-dist/doc/latex/circuitikz/ctikzmanutils.sty
@@ -158,7 +158,7 @@
% 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}} };
+\index{#3} \tikz{\foreach \i in {#6} {\index{\i|see{#3}} }}%
\twopartbox{%
\begin{circuitikz}
\IfBooleanTF{#1}{%
diff --git a/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex b/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
index 2e57a795e05..12733bdd1ce 100644
--- a/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
+++ b/Master/texmf-dist/tex/context/third/circuitikz/t-circuitikz.tex
@@ -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.4}
-\def\pgfcircversiondate{2021/10/31}
+\def\pgfcircversion{1.4.5}
+\def\pgfcircversiondate{2021/12/06}
\writestatus{loading}{\pgfcircversiondate{} The CircuiTikz circuit drawing package version \pgfcircversion}
\usemodule[tikz]
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex
index 9abaf1e8b6a..30a4a268002 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircmultipoles.tex
@@ -885,7 +885,7 @@
\noexpand\pgf@circ@rotaryanchor{\the\pgf@circ@count@a}{0}{1}%
}
\expandafter\xdef\csname pgf@anchor@rotaryswitch@sqout\space\the\pgf@circ@count@a\endcsname{%
- \noexpand\pgf@circ@rotarysqanchor{\the\pgf@circ@count@a}{0}%
+ \noexpand\pgf@circ@rotarysqanchor{\the\pgf@circ@count@a}%
}
\advance\pgf@circ@count@a by -1\relax%
\repeatpgfmathloop%
diff --git a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
index e1d7314931e..c132b16c853 100644
--- a/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
+++ b/Master/texmf-dist/tex/generic/circuitikz/pgfcircutils.tex
@@ -57,9 +57,14 @@
\def\ctikztextnot#1{$\overline{\hbox{#1}}\m@th$}
\else\ifpgfutil@format@is@plain
% text mode overbar
+ % but really circuitikz will not work in plain...
% Thanks to @egreg https://tex.stackexchange.com/a/24133/38080
\def\ctikztextnot#1{$\overline{\hbox{#1}}$}
\else\ifpgfutil@format@is@context
+ %% flipping text
+ \def\ctikzflipx#1{\mirror{#1}}
+ \def\ctikzflipy#1{\mirror{\rotate[rotation=180]{#1}}}
+ \def\ctikzflipxy#1{\rotate[rotation=180]{#1}}
% text mode overbar
% Thanks to @egreg https://tex.stackexchange.com/a/24133/38080
\def\ctikztextnot#1{$\overline{\hbox{#1}}$}
@@ -104,13 +109,13 @@
\expandafter\gdef\csname #1@Anchor\endcsname{}%
\expandafter\gdef\csname #1@setanchors\endcsname{%
\setbox\ctikz@scratchbox=\hbox{%
- \begin{circuitikz}
+ \tikzpicture
\draw (0,0) \csname#1\endcsname{T-#1}{};
\foreach [count=\i] \anchor in {#2}
% reference anchor is -center
\draw (0,{2-\i/2}) let \p1 = ($(T-#1-subckt@reference)-(T-#1-\anchor)$) in
node[right]{\anchor: \x1,\y1 \expandafter\xdef\csname #1@Anchor\anchor\endcsname{++(\x1,\y1)}};
- \end{circuitikz}%
+ \endtikzpicture
}%
}%
\expandafter\gdef\csname#1\endcsname##1##2{%
@@ -384,7 +389,7 @@
\def\ctikztunablearrow@full[#1]#2#3#4#5{%
% add tunable arrow to a component
% relative thickness, relative length, rotation from axis, name of the component
- \begin{scope}
+ \scope
\draw
\pgfextra{\pgfcirc@set@arrows{tunable}{}{latexslim}
\pgfsetlinewidth{#2\pgflinewidth}} [#1]
@@ -393,6 +398,6 @@
\n2 = {atan2(\y2,\x2)} in
% node[above]{\n1, \n2}
(#5.center) ++({\n2+(#4)}:{-0.5*(\n1)*(#3)}) -- ++({\n2+(#4)}:{(\n1)*(#3)});
- \end{scope}%
+ \endscope
}
\endinput
diff --git a/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty b/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
index 15540ac36f9..67ed70f53b5 100644
--- a/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
+++ b/Master/texmf-dist/tex/latex/circuitikz/circuitikz.sty
@@ -16,8 +16,8 @@
\providecommand\DeclareRelease[3]{}
\providecommand\DeclareCurrentRelease[2]{}
-\def\pgfcircversion{1.4.4}
-\def\pgfcircversiondate{2021/10/31}
+\def\pgfcircversion{1.4.5}
+\def\pgfcircversiondate{2021/12/06}
\DeclareRelease{0.4}{2012/12/20}{circuitikz-0.4-body.tex}
\DeclareRelease{v0.4}{2012/12/20}{circuitikz-0.4-body.tex}