diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-24 22:15:16 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-24 22:15:16 +0000 |
commit | f819f35d951f23ba4ab4eff799deb8327c1d1e5b (patch) | |
tree | df1365e41a1b77bbed6f23883df7827b3236a8da /Master/texmf-dist/doc | |
parent | 8458ef4e60e98c3082331d40e037f426af549444 (diff) |
circuitikz (24apr16)
git-svn-id: svn://tug.org/texlive/trunk@40729 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc')
-rw-r--r-- | Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf | bin | 0 -> 12185 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md (renamed from Master/texmf-dist/doc/generic/circuitikz/CHANGELOG) | 12 | ||||
-rw-r--r-- | Master/texmf-dist/doc/generic/circuitikz/README.md (renamed from Master/texmf-dist/doc/generic/circuitikz/README) | 39 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/changelog.tex | 234 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf | bin | 376834 -> 254347 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex (renamed from Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.ltx) | 592 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/compatibility.pdf | bin | 16233 -> 0 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/compatibility.tex (renamed from Master/texmf-dist/doc/latex/circuitikz/compatibility.ltx) | 0 |
8 files changed, 587 insertions, 290 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 Binary files differnew file mode 100644 index 00000000000..8da491a0ca3 --- /dev/null +++ b/Master/texmf-dist/doc/context/third/circuitikz/circuitikz-context.pdf diff --git a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md index f9dd95f78a6..83d9a049f04 100644 --- a/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG +++ b/Master/texmf-dist/doc/generic/circuitikz/CHANGELOG.md @@ -1,11 +1,19 @@ -CircuiTikz - Changelog +<!--- CircuiTikz - Changelog ---> +The major changes among the different circuitikz versions are listed here. See <https://github.com/mredaelli/circuitikz/commits> for a full list of changes. + +* Version 0.5 (2016-04-24) + - new option boxed and dashed for hf-symbols + - new option solderdot to enable/disable solderdot at source port of some fets + - new parts: photovoltaic source, piezo crystal, electrolytic capacitor, electromechanical device(motor, generator) + - corrected voltage and current direction(option to use old behaviour) + - option to show body diode at fet transistors * Version 0.4 - minor improvements to documentation - comply with TDS - merge high frequency symbols by Stefan Erhardt - added switch (not opening nor closing) - - added added solder dot in some transistors + - added solder dot in some transistors - improved ConTeXt compatibility * Version 0.3.1 diff --git a/Master/texmf-dist/doc/generic/circuitikz/README b/Master/texmf-dist/doc/generic/circuitikz/README.md index af83ad27ed3..ac87a1f6c61 100644 --- a/Master/texmf-dist/doc/generic/circuitikz/README +++ b/Master/texmf-dist/doc/generic/circuitikz/README.md @@ -1,38 +1,43 @@ -This is CircuiTikz, version 0.4. +circuitikz +========== + +This is CircuiTikz, version 0.5 (2016-04-24). This package provides a set of macros for naturally typesetting electrical and (somewhat less naturally, perhaps) electronical networks. -It was born mainly for writing my own exercise book and exams sheets for the Elettrotecnica courses at Politecnico di Milano, Italy. I wanted a tool that was easy to use, with a lean syntax, native to \LaTeX, and supporting directly PDF output format. +It was born mainly for writing my own exercise book and exams sheets for the Elettrotecnica courses at Politecnico di Milano, Italy. I wanted a tool that was easy to use, with a lean syntax, native to LaTeX, and supporting directly PDF output format. -So I based everything with the very impressive (if somewhat verbose at times) \TikZ\ package. +So I based everything with the very impressive (if somewhat verbose at times) TikZ package. -------------- -** Requirements -Tikz graphics library, version 2 -xstrings not older than 2009/03/13 +## Requirements +* Tikz graphics library, version 2 +* xstrings not older than 2009/03/13 -** Installation +## Installation Unpack everything in a directory in the TeX search path and refresh the TeX db. -** Usage +## Usage Just place - +````latex \usepackage{circuitikz} - +```` or, for ConTeXt, - +````latex \usemodule[circuitikz] - +```` in the preamble and compile away, both with PS and PDF target output. -** Contact the author -m.redaelli@gmail.com -git: https://github.com/mredaelli/circuitikz +## Contact the authors +* git: https://github.com/mredaelli/circuitikz +* Massimo Redaelli (m.redaelli@gmail.com) +* Stefan Lindner (stefan.lindner@fau.de) +* Stefan Erhardt (stefan.erhardt@fau.de) -------------- -Copyright 2007-13 by Massimo Redaelli +------------- +Copyright 2007-16 by Massimo Redaelli This file may be distributed and/or modified diff --git a/Master/texmf-dist/doc/latex/circuitikz/changelog.tex b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex new file mode 100644 index 00000000000..4fb58529660 --- /dev/null +++ b/Master/texmf-dist/doc/latex/circuitikz/changelog.tex @@ -0,0 +1,234 @@ +%DO NOT EDIT THIS AUTOMATICALLY GENERATED FILE, run "make changelog" at toplevel!!! +The major changes among the different circuitikz versions are listed +here. See \url{https://github.com/mredaelli/circuitikz/commits} for a +full list of changes. + +\begin{itemize} +\itemsep1pt\parskip0pt\parsep0pt +\item + Version 0.5 (2016-04-24) + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + new option boxed and dashed for hf-symbols + \item + new option solderdot to enable/disable solderdot at source port of + some fets + \item + new parts: photovoltaic source, piezo crystal, electrolytic + capacitor, electromechanical device(motor, generator) + \item + corrected voltage and current direction(option to use old behaviour) + \item + option to show body diode at fet transistors + \end{itemize} +\item + Version 0.4 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + minor improvements to documentation + \item + comply with TDS + \item + merge high frequency symbols by Stefan Erhardt + \item + added switch (not opening nor closing) + \item + added solder dot in some transistors + \item + improved ConTeXt compatibility + \end{itemize} +\item + Version 0.3.1 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + different management of color\ldots{} + \item + fixed typo in documentation + \item + fixed an error in the angle computation in voltage and current + routines + \item + fixed problem with label size when scaling a tikz picture + \item + added gas filled surge arrester + \item + added compatibility option to work with Tikz's own circuit library + \item + fixed infinite in arctan computation + \end{itemize} +\item + Version 0.3.0 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + fixed gate node for a few transistors + \item + added mixer + \item + added fully differential op amp (by Kristofer M. Monisit) + \item + now general settings for the drawing of voltage can be overridden + for specific components + \item + made arrows more homogeneous (either the current one, or latex' bt + pgf) + \item + added the single battery cell + \item + added fuse and asymmetric fuse + \item + added toggle switch + \item + added varistor, photoresistor, thermocouple, push button + \item + added thermistor, thermistor ptc, thermistor ptc + \item + fixed misalignment of voltage label in vertical bipoles with names + \item + added isfet + \item + added noiseless, protective, chassis, signal and reference grounds + (Luigi «Liverpool») + \end{itemize} +\item + Version 0.2.4 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + added square voltage source (contributed by Alistair Kwan) + \item + added buffer and plain amplifier (contributed by Danilo Piazzalunga) + \item + added squid and barrier (contributed by Cor Molenaar) + \item + added antenna and transmission line symbols contributed by Leonardo + Azzinnari + \item + added the changeover switch spdt (suggestion of Fabio Maria + Antoniali) + \item + rename of context.tex and context.pdf (thanks to Karl Berry) + \item + updated the email address + \item + in documentation, fixed wrong (non-standard) labelling of the axis + in an example (thanks to prof. Claudio Beccaria) + \item + fixed scaling inconsistencies in quadrupoles\\ + \item + fixed division by zero error on certain vertical paths + \item + introduced options straighlabels, rotatelabels, smartlabels + \end{itemize} +\item + Version 0.2.3 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + fixed compatibility problem with label option from tikz + \item + Fixed resizing problem for shape ground + \item + Variable capacitor + \item + polarized capacitor + \item + ConTeXt support (read the manual!) + \item + nfet, nigfete, nigfetd, pfet, pigfete, pigfetd (contribution of + Clemens Helfmeier and Theodor Borsche) + \item + njfet, pjfet (contribution of Danilo Piazzalunga) + \item + pigbt, nigbt + \item + \emph{backward incompatibility} potentiometer is now the standard + resistor-with-arrow-in-the-middle; the old potentiometer is now + known as variable resistor (or vR), similarly to variable inductor + and variable capacitor + \item + triac, thyristor, memristor + \item + new property ``name'' for bipoles + \item + fixed voltage problem for batteries in american voltage mode + \item + european logic gates + \item + \emph{backward incompatibility} new american standard inductor. Old + american inductor now called ``cute inductor'' + \item + \emph{backward incompatibility} transformer now linked with the + chosen type of inductor, and version with core, too. Similarly for + variable inductor + \item + \emph{backward incompatibility} styles for selecting shape variants + now end are in the plural to avoid conflict with paths + \item + new placing option for some tripoles (mostly transistors) + \item + mirror path style + \end{itemize} +\item + Version 0.2.2 - 20090520 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + Added the shape for lamps. + \item + Added options \texttt{europeanresistor}, \texttt{europeaninductor}, + \texttt{americanresistor} and \texttt{americaninductor}, with + corresponding styles. + \item + FIXED: error in transistor arrow positioning and direction under + negative \texttt{xscale} and \texttt{yscale}. + \end{itemize} +\item + Version 0.2.1 - 20090503 + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + Op-amps added + \item + added options arrowmos and noarrowmos, to add arrows to pmos and + nmos + \end{itemize} +\item + Version 0.2 - 20090417 First public release on CTAN + + \begin{itemize} + \itemsep1pt\parskip0pt\parsep0pt + \item + \emph{Backward incompatibility}: labels ending with + \texttt{:}\textit{angle} are not parsed for positioning anymore. + \item + Full use of \TikZ~keyval features. + \item + White background is not filled anymore: now the network can be drawn + on a background picture as well. + \item + Several new components added (logical ports, transistors, double + bipoles, \ldots). + \item + Color support. + \item + Integration with \{\ttfamily siunitx\}. + \item + Voltage, american style. + \item + Better code, perhaps. General cleanup at the very least. + \end{itemize} +\item + Version 0.1 - 2007-10-29 First public release +\end{itemize} diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf Binary files differindex d88e58e7101..95903938cb1 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf +++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.pdf diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.ltx b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex index 5404efe77c0..8896c748b7a 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.ltx +++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex @@ -1,10 +1,19 @@ +% !TeX document-id = {5e9c4ee1-adf2-4a3c-b550-ad6df747cc75} +% % Konfiguration für Texstudio (Version > 2.9) +% !TeX program = xelatex +% !TeX TXS-program:compile = txs:///xelatex/[-8bit] +% !BIB program = biber +% !TeX spellcheck = en_US +% !TeX encoding = utf8 + \documentclass[a4paper]{article} +\usepackage{a4wide} %smaller borders \def\modern{ \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX, Numbers=OldStyle,Mapping=tex-text ,SmallCapsFeatures={LetterSpace=8, Numbers=OldStyle}} - \setmainfont{Gentium Book Basic} + %\setmainfont{Gentium Book Basic} } \usepackage[siunitx]{circuitikz} @@ -28,7 +37,7 @@ \sisetup{load=derived} % loading \siemens \usepackage{showexpl} -\lstset{pos=l,width=-99pt, overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe=single,numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em, columns=flexible, language=[LaTeX]TEX} +\lstset{pos=l,width=-99pt, overhang=0pt,hsep=\columnsep,vsep=\bigskipamount,rframe=single,numbers=left,numberstyle=\tiny,numbersep=.3em, xleftmargin=1em, columns=flexible, language=[LaTeX]TEX,breaklines=true,basicstyle=\normalsize\ttfamily,tabsize=3} \usepackage{booktabs} \renewcommand{\arraystretch}{1.2} @@ -51,7 +60,7 @@ \usepackage{textcomp} \makeindex[title=Index of the components, intoc=true] -\def\circuititem#1#2#3{\item {#2} (\texttt{#1}) \index{#1} \par \begin{center}\begin{circuitikz} \draw (0,0) node[#1] {}; \end{circuitikz} \end{center} +\def\circuititem#1#2#3{\item {#2} (node[\texttt{#1}]\{#3\}) \index{#1} \par \begin{center}\begin{circuitikz} \draw (0,0) node[#1] {#3}; \end{circuitikz} \end{center} \par} \newcommand{\circuititembip}[3]{\item {#2} \index{#1} @@ -62,8 +71,9 @@ }% )\par \begin{center}\begin{circuitikz} \draw (0,0) to[#1] (2,0); \end{circuitikz} \end{center}\par} -\usepackage{marvosym} -\newcommand{\email}[2][]{\def\temp{#1}\ifx\temp\empty\Email~\fi\href{mailto:#2}{#2}} +%\usepackage{marvosym} +%\newcommand{\email}[2][]{\def\temp{#1}\ifx\temp\empty\Letter~\fi\href{mailto:#2}{#2}} +\newcommand{\email}[1]{\href{mailto:#1}{#1}} \long\def\comment#1{} @@ -77,8 +87,8 @@ \lstset{frameround=fttt} \lstloadlanguages{TeX} -\title{\Circuitikz \\{\large version \pgfcircversion}} -\author{Massimo A. Redaelli} +\title{\Circuitikz \\{\large version \pgfcircversion{} (\pgfcircversiondate)}} +\author{Massimo A. Redaelli (\email{m.redaelli@gmail.com})\\Stefan Lindner (\email{stefan.lindner@fau.de})\\Stefan Erhardt (\email{stefan.erhardt@fau.de})} \date{\today} \maketitle @@ -86,24 +96,18 @@ \tableofcontents \section{Introduction} -After two years of little exposure only on my personal website\footnote{Now the package is moved to its own git repository: \url{https://github.com/mredaelli/circuitikz}. Contributions are welcome.}, I did a major rehauling of the code of Circui\TikZ, fixing several problems and converting everything to \TikZ\ version $2.0$. +\subsection{About} +\Circuitikz\ was initiated by Massimo Redaelli in 2007, who was working as a research assistant at the Polytechnic University of Milan, Italy, and needed a tool for creating exercises and exams. +After he left University in 2010 the development of \Circuitikz\ slowed down, since \LaTeX\ is mainly established in the academic world. In 2015 Stefan Lindner and Stefan Erhardt, both working as research assistants at the University of Erlangen-Nürnberg, Germany, joined the team and now maintain the project together with the initial author. -I'm not too sure about the result, because my (La)\TeX\ skills are much to be improved, but it seems it's time for more user feedback. So, here it is\ldots +The use of \Circuitikz\ is, of course, not limited to academic teaching. The package gets widely used by engineers for typesetting electronic circuits for articles and publications all over the world. \medskip -I know the documentation is somewhat scant. Hope to have time to improve it a bit. - -\subsection{About} -This package provides a set of macros for naturally typesetting electrical and (somewhat less naturally, perhaps) electronical networks. - -It was born mainly for writing my own exercise book and exams sheets for the Elettrotecnica courses at Politecnico di Milano, Italy. I wanted a tool that was easy to use, with a lean syntax, native to \LaTeX, and supporting directly PDF output format. - -So I based everything with the very impressive (if somewhat verbose at times) \TikZ\ package. +This documentation is somewhat scant. Hopefully the authors will find the leisure to improve it some day. \subsection{Loading the package} - \begin{table}[h] \centering \begin{tabular}{ll}\toprule @@ -122,15 +126,6 @@ So I based everything with the very impressive (if somewhat verbose at times) \T \tikz \draw (0,0) to[R=$R_1$] (2,0); \end{LTXexample} -\subsection{License} -Copyright \copyright\ 2007--2011 Massimo Redaelli. This package is author-maintained. -Permission is granted to copy, distribute and/or modify this software under the -terms of the \LaTeX Project Public License, version 1.3.1, or the GNU Public License. This software is provided ‘as is’, without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a -particular purpose. - -\subsection{Feedback} -Much appreciated: \email{mailto:m.redaelli@gmail.com}. Although I don't guarantee quick answers. - \subsection{Requirements} \begin{itemize} \item \texttt{tikz}, version $\ge 2$; @@ -139,43 +134,28 @@ Much appreciated: \email{mailto:m.redaelli@gmail.com}. Although I don't guarante \end{itemize} \subsection{Incompatible packages} +\TikZ's own \texttt{circuit} library, which is 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. -\TikZ's own \texttt{circuit} library, which is based on \Circuitikz, (re?)defines several styles used by this library. In order to have them work together I added the \texttt{compatibility} package option, which basically prefixes the names of all \Circuitikz\ \texttt{to[]} styles with an asterisk. +So, if loaded with said option, one must write \verb!(0,0) to[*R] (2,0)! and, for transistors on a path, \verb!(0,0) to[*Tnmos] (2,0)!, and so on (but \verb!(0,0) node[nmos] {}!). See example at page~\pageref{ex:compatibility}. -So, if loaded with said option, one must write \verb!(0,0) to[*R] (2,0)! and, for transistors on a path, \verb!(0,0) to[*Tnmos] (2,0)!, and so on (but \verb!(0,0) node [nmos] {}!). See example at page~\pageref{ex:compatibility}. - -\subsection{Introduction to version 0.3.0} - -Probably nobody is hoping or caring for a new version of the package at this point, seeing how long it took me for this next release. But here it is, fixing a big problem (voltage labels in the wrong place, in some cases) and adding several components. - -Thanks for bug reporting and suggesting improvements. - -\subsection{Introduction to version 0.2.3} - -Having waited a long time before updating the package, many feature requests piled on my desk. They should all be implemented now. - -There are a number of backward incompatibilities — I'm sorry, but I had to make a choice in order not to have a schizophrenic interface. They are mostly, in my opinion, minor problems that can be dealt with with appropriate package options: -\begin{itemize} - \item \texttt{potentiometer} is now the standard resistor-with-arrow-in-the-middle; the old potentiometer is now known as \texttt{variable resistor} (or \texttt{vR}), similarly to \texttt{variable inductor} and \texttt{variable capacitor}; - \item \texttt{american inductor} was not really the standard american inductor. The old american inductor has been renamed \texttt{cute inductor}; - \item \texttt{transformer}, \texttt{transformer core} and \texttt{variable inductor} are now linked with the chosen type of \texttt{inductor}; - \item styles for selecting shape variants (like \texttt{[american resistors]}) are now in the plural to avoid conflict with paths (like \texttt{to[american resistor]}). -\end{itemize} +\subsection{License} +Copyright \copyright\ 2007--2016 Massimo Redaelli. This package is author-maintained. Permission is granted to copy, distribute and/or modify this software under the terms of the \LaTeX\ Project Public License, version 1.3.1, or the GNU Public License. This software is provided ‘as is’, without warranty of any kind, either expressed or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. +\subsection{Feedback} +The easiest way to contact the authors is via the official Github repository: \url{https://github.com/mredaelli/circuitikz/issues} \section{Package options} -\noindent Circuit people are very opinionated about their symbols. The package, left to its own devices, loads with drawing conventions that \emph{I} like, so for instance you get this: +\noindent Circuit people are very opinionated about their symbols. In order to meet the individual gusto you can set a bunch of package options. The standard options are what the authors like, for example you get this: \begin{LTXexample}[varwidth=true] \begin{circuitikz} - \draw (0,0) to[R=2<\ohm>, i=?, v=84<\volt>] (2,0) -- - (2,2) to[V=84<\volt>] (0,2) - -- (0,0); + \draw (0,0) to[R=2<\ohm>, i=?, v=84<\volt>] (2,0) -- + (2,2) to[V<=84<\volt>] (0,2) + -- (0,0); \end{circuitikz} \end{LTXexample} -But if you really, \emph{really} want your circuit ugly, you can load the package with: - +Feel free to load the package with your own cultural options: \begin{center} \begin{tabular}{ll}\toprule @@ -185,15 +165,14 @@ But if you really, \emph{really} want your circuit ugly, you can load the packag \end{tabular} \end{center} -\noindent and you get (don't blame me) - -\begin{center} -\begin{circuitikz}[circuitikz/voltage=american, circuitikz/resistor=american] - \draw (0,0) to[R=2<\ohm>, i=?, v=84<\volt>] (2,0) -- - (2,2) to[V=84<\volt>] (0,2) - -- (0,0); +\begin{LTXexample}[varwidth=true,linerange={1-1,3-6}] +\begin{circuitikz} + [circuitikz/voltage=american, circuitikz/resistor=american] % line not printed + \draw (0,0) to[R=2<\ohm>, i=?, v=84<\volt>] (2,0) -- + (2,2) to[V<=84<\volt>] (0,2) + -- (0,0); \end{circuitikz} -\end{center} +\end{LTXexample} \medskip{} @@ -220,10 +199,18 @@ But if you really, \emph{really} want your circuit ugly, you can load the packag \item \texttt{emptydiodes}: the various diodes are drawn \emph{but not} filled by default, i.e. when using styles such as \texttt{diode}, \texttt{D}, \texttt{sD}, \ldots Filled diode can always be forced with \texttt{D*}, \texttt{sD*}, \ldots \item \texttt{arrowmos}: pmos and nmos have arrows analogous to those of pnp and npn transistors; \item \texttt{noarrowmos}: pmos and nmos do not have arrows analogous to those of pnp and npn transistors; + \item \texttt{fetbodydiode}: draw the body diode of a FET; + \item \texttt{nofetbodydiode}: do not draw the body diode of a FET; + \item \texttt{fetsolderdot}: draw solderdot at bulk-source junction of some transistors; + \item \texttt{nofetsolderdot}: do not draw solderdot at bulk-source junction of some transistors; + \item \texttt{emptypmoscircle}: the circle at the gate of a pmos transistor gets not filled; + \item \texttt{lazymos}: draws lazy nmos and pmos transistors. Chip designers with huge circuits prefer this notation; \item \texttt{straightlabels}: labels on bipoles are always printed straight up, i.e.~with horizontal baseline; \item \texttt{rotatelabels}: labels on bipoles are always printed aligned along the bipole; \item \texttt{smartlabels}: labels on bipoles are rotated along the bipoles, unless the rotation is very close to multiples of 90°; \item \texttt{compatibility}: makes it possibile to load \Circuitikz\ and \TikZ\ circuit library together. + \item \texttt{oldvoltagedirection}: Use old(erronous) way of voltage direction having a difference between european and american direction + \item \texttt{betterproportions}\footnote{May change in the future!}: nicer proportions of transistors in comparision to resistors; \end{itemize} The old options in the singular (like \texttt{american voltage}) are still available for compatibility, but are discouraged. @@ -231,7 +218,7 @@ The old options in the singular (like \texttt{american voltage}) are still avail \medskip Loading the package with no options is equivalent to my own personal liking, that is to the following options:\\ - \texttt{[europeancurrents, europeanvoltages, americanresistors, cuteinductors, americanports, nosiunitx, noarrowmos, smartlabels]}. + \texttt{[nofetsolderdot,nooldvoltagedirection,europeancurrents,europeanvoltages,americanports,americanresistors,cuteinductors,europeangfsurgearrester,nosiunitx,noarrowmos,smartlabels,nocompatibility]}. \medskip @@ -241,29 +228,43 @@ In \ConTeXt\ the options are similarly specified: \texttt{current=european|ameri Here follows the list of all the shapes defined by Circui\TikZ. These are all \texttt{pgf} nodes, so they are usable in both \texttt{pgf} and \TikZ. -\medskip - -Each bipole (plus triac and thyristors) are shown using the following command, where \verb!#1! is the name of the component\footnote{If \texttt{\#1} is the name of the bipole/the style, then the actual name of the shape is \texttt{\#1shape}.}: - +\subsubsection*{Drawing normal components} +Normal components (monopoles, multipoles) can be drawn at a specified point with this syntax, where \verb!#1! is the name of the component: \begin{verbatim} \begin{center}\begin{circuitikz} \draw - (0,0) to[ #1 ] (2,0) + (0,0) node[#1,#2] (#3) {#4} ; \end{circuitikz} \end{center} \end{verbatim} +\noindent +Explanation of the parameters:\\ +\texttt{\#1}: component name\footnote{For using bipoles as nodes, the name of the node is \texttt{\#1shape}.} (mandatory)\\ +\texttt{\#2}: list of comma separated options (optional)\\ +\texttt{\#3}: name of an anchor (optional)\\ +\texttt{\#4}: text written to the text anchor of the component (optional)\\ + +\begin{framed} + \noindent \textbf{Note for \TikZ\ newbies:} Nodes must have curly brackets at the end, even when empty. An optional anchor (\texttt{\#3}) can be defined within round brackets to be addressed again later on. And please don't forget the semicolon to terminate the \texttt{\textbackslash draw} command. +\end{framed} + +\subsubsection*{Drawing bipoles/two-ports} +Bipoles/Two-ports (plus some special components) can be drawn between two points using the following command: -The other shapes are shown with: \begin{verbatim} \begin{center}\begin{circuitikz} \draw - (0,0) node[ #1 ] {} + (0,0) to[#1,#2] (2,0) ; \end{circuitikz} \end{center} \end{verbatim} - -Please notice that for user convenience transistors can also be inputted using the syntax for bipoles. See section~\ref{sec:transasbip}. +\noindent +Explanation of the parameters:\\ +\texttt{\#1}: component name (mandatory)\\ +\texttt{\#2}: list of comma separated options (optional)\\ +\noindent +Transistors and some other components can also be placed using the syntax for bipoles. See section~\ref{sec:transasbip}. \begin{framed} If using the \verb!\tikzexternalize! feature, as of Ti\emph{k}z 2.1 all pictures must end with \verb!\end{tikzpicture}!. Thus you \emph{cannot} use the \verb!circuitikz! environment. - Which is ok: just use \verb!tikzpicture!: everything will work there just fine. + Which is ok: just use the environment \verb!tikzpicture!: everything will work there just fine. \end{framed} \subsection{Monopoles} @@ -271,6 +272,7 @@ Please notice that for user convenience transistors can also be inputted using t \circuititem{ground}{Ground}{} \circuititem{rground}{Reference ground}{} \circuititem{sground}{Signal ground}{} + \circuititem{tground}{Thicker ground}{} \circuititem{nground}{Noiseless ground}{} \circuititem{pground}{Protective ground}{} \circuititem{cground}{Chassis ground\footnote{These last three were contributed by Luigi «Liverpool»)}}{} @@ -278,9 +280,10 @@ Please notice that for user convenience transistors can also be inputted using t \circuititem{rxantenna}{Receiving antenna}{} \circuititem{txantenna}{Transmitting antenna}{} \circuititem{tlinestub}{Transmission line stub}{} - \circuititem{vcc}{VCC}{} + \circuititem{vcc}{VCC/VDD}{} + \circuititem{vee}{VEE/VSS}{} \circuititem{match}{match}{} - \circuititem{oscillator}{LO\footnote{These last three come from Stefan Erhardt's contribution of HF components}}{} + %\circuititem{oscillator}{LO\footnote{These last three come from Stefan Erhardt's contribution of block diagram components}}{} \end{itemize} @@ -398,7 +401,9 @@ If otherwise \texttt{americangfsurgearrester} option is active (or the style \te \begin{itemize} \circuititembip{capacitor}{Capacitor}{C} \circuititembip{polar capacitor}{Polar capacitor}{pC} + \circuititembip{ecapacitor}{Electrolytic capacitor}{eC,elko} \circuititembip{variable capacitor}{Variable capacitor}{vC} + \circuititembip{piezoelectric}{Piezoelectric Element}{PZ} \end{itemize} If (default behaviour) \texttt{cuteinductors} option is active (or the style \texttt{[cute inductors]} is used), the inductors are displayed as follows: @@ -436,8 +441,9 @@ There is also a transmission line: \subsubsection{Special sources} \begin{itemize} \circuititembip{square voltage source}{Square voltage source}{vsourcesquare, sqV} - \circuititembip{vsourcetri}{Square voltage source}{} + \circuititembip{vsourcetri}{Triangle voltage source}{tV} \circuititembip{esource}{Empty voltage source}{} + \circuititembip{pvsource}{Photovoltaic-voltage source}{} \end{itemize} \subsubsection{DC sources} @@ -460,7 +466,7 @@ There is also a transmission line: \circuititembip{push button}{Push button}{} \end{itemize} -\subsubsection{HF components} +\subsubsection{Block diagram components} \noindent Contributed by Stefan Erhardt. \begin{itemize} \circuititembip{twoport}{generic two port\footnote{To specify text to be put in the component: \texttt{twoport[t=text]}): \tikz \draw[scale=.5, transform shape] (0,0) to[twoport,>,t=text] (2,0); }}{} @@ -508,16 +514,33 @@ Similarly, if (default behaviour) \texttt{europeanvoltages} option is active (or \subsubsection{Transistors} + \begin{itemize} \circuititem{nmos}{\scshape nmos}{} \circuititem{pmos}{\scshape pmos}{} \circuititem{npn}{\scshape npn}{} \circuititem{pnp}{\scshape pnp}{} + \circuititem{npn,photo}{\scshape npn}{} + \circuititem{pnp,photo}{\scshape pnp}{} \circuititem{nigbt}{\scshape npigbt}{} \circuititem{pigbt}{\scshape pigbt}{} \end{itemize} -If the option \texttt{arrowmos} is used (or after the commant \verb!\ctikzset{tripoles/mos style/arrows}! is given), this is the output: +The Base/Gate connection of all transistors can be disable by using the options \textit{nogate} or \textit{nobase}, respectively. The Base/Gate anchors are floating, but there an additional anchor "nogate"/"nobase", which can be used to point to the unconnected base: + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (2,0) node[npn,nobase](npn){}; + \draw (npn.E) node[below]{E}; + \draw (npn.C) node[above]{C}; + \draw (npn.B) node[circ]{} node[left]{B}; + \draw[dashed,red,-latex] (1,0.5)--(npn.nobase); +\end{circuitikz} +\end{LTXexample} + + + +If the option \texttt{arrowmos} is used (or after the command \verb!\ctikzset{tripoles/mos style/arrows}! is given), this is the output: \ctikzset{tripoles/mos style/arrows} \begin{itemize} \circuititem{nmos}{\scshape nmos}{} @@ -525,11 +548,19 @@ If the option \texttt{arrowmos} is used (or after the commant \verb!\ctikzset{tr \end{itemize} \ctikzset{tripoles/mos style/no arrows} +To draw the PMOS circle non-solid, use the option \texttt{emptycircle} or the command \verb!\ctikzset{tripoles/pmos style/emptycircle}!. +\begin{itemize} + \circuititem{pmos,emptycircle}{\scshape pmos}{} +\end{itemize} + \textsc{nfet}s and \textsc{pfet}s have been incorporated based on code provided by Clemens Helfmeier and Theodor -Borsche: +Borsche. Use the package options \texttt{fetsolderdot}/\texttt{nofetsolderdot} to enable/disable solderdot at some fet-transistors. Additionally, the solderdot option can be enabled/disabled for single transistors with the option "solderdot" and "nosolderdot", respectively. + + \begin{itemize} \circuititem{nfet}{\scshape nfet}{} \circuititem{nigfete}{\scshape nigfete}{} + \circuititem{nigfete,solderdot}{\scshape nigfete}{} \circuititem{nigfetebulk}{\scshape nigfetebulk}{} \circuititem{nigfetd}{\scshape nigfetd}{} \circuititem{pfet}{\scshape pfet}{} @@ -549,22 +580,53 @@ Borsche: \circuititem{isfet}{\scshape isfet}{} \end{itemize} -\subsubsection{HF} -These come from Stefan Erhardt's contribution of HF components. +\subsubsection{Block diagram} +These come from Stefan Erhardt's contribution of block diagram components. Add a box around them with the option \texttt{box}. \begin{itemize} + \circuititem{mixer}{\scshape mixer}{} + \circuititem{adder}{\scshape adder}{} + \circuititem{oscillator}{\scshape oscillator}{} \circuititem{circulator}{\scshape circulator}{} \circuititem{wilkinson}{\scshape wilkinson divider}{} + %\circuititem{coupler}{\scshape coupler}{} + %\circuititem{coupler2}{\scshape coupler2}{} \end{itemize} - \subsubsection{Switch} \begin{itemize} \circuititem{spdt}{\scshape spdt}{} \circuititembip{toggle switch}{Toggle switch}{} \end{itemize} +\subsubsection{Electro-Mechanical Devices} +\begin{itemize} + \circuititem{elmech}{\scshape Motor}{M} + \circuititem{elmech}{\scshape Generator}{G} +\end{itemize} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} +\draw (2,0) node[elmech](motor){M}; +\draw (motor.north) |-(0,2) to [R] ++(0,-2) to[dcvsource]++(0,-2) -| (motor.bottom); +\draw[thick,->>](motor.right)--++(1,0)node[midway,above]{$\omega$}; +\end{circuitikz} +\end{LTXexample} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} +\draw (2,0) node[elmech](motor){}; +\draw (motor.north) |-(0,2) to [R] ++(0,-2) to[dcvsource]++(0,-2) -| (motor.bottom); +\draw[thick,->>](motor.center)--++(1.5,0)node[midway,above]{$\omega$}; +\end{circuitikz} +\end{LTXexample} +The symbols can also be used along a path, using the transistor-path-syntax(T in front of the shape name, see section \ref{sec:transasbip}). Don´t forget to use parameter $n$ to name the node and get acces to the anchors: +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} +\draw (0,0) to [Telmech=M,n=motor] ++(0,-3) to [Telmech=M] ++(3,0) to [Telmech=G,n=generator] ++(0,3) to [R] (0,0); +\draw[thick,->>](motor.left)--(generator.left)node[midway,above]{$\omega$}; +\end{circuitikz} +\end{LTXexample} + \subsubsection{Other bipole-like tripoles}\label{sec:othertrip} The following tripoles are entered with the usual command of the form \begin{itemize} \circuititembip{triac}{triac}{Tr} @@ -572,10 +634,11 @@ These come from Stefan Erhardt's contribution of HF components. %\circuititembip{IGBT}{IGBT}{} \end{itemize} -\subsubsection{Misc} -\begin{itemize} - \circuititem{mixer}{Mixer}{} -\end{itemize} +% now part of block diagram parts above +%\subsubsection{Misc} +%\begin{itemize} +% \circuititem{mixer}{Mixer}{} +%\end{itemize} \subsection{Double bipoles} @@ -650,6 +713,7 @@ If otherwise \texttt{europeanports} option is active (or the style \texttt{[euro \begin{itemize} \circuititem{currarrow}{Arrows (current and voltage)}{} + \circuititem{inputarrow}{Arrow to draw at its tip, useful for block diagrams.}{} \circuititem{circ}{Connected terminal}{} \circuititem{ocirc}{Unconnected terminal}{} \end{itemize} @@ -746,7 +810,14 @@ Long names/styles for the bipoles can be used: \end{circuitikz} \end{LTXexample} -\subsection{Currents} +\subsection{Currents}\label{currents} +The counting direction of currents and voltages have changed with version 0.5, for compability reasons there is a option to use the olddirections(see options). For the new scheme, the following rules apply: +\begin{itemize} +\item \textbf{Normal bipoles:} currents and voltages are counted positiv in drawing direction. +\item \textbf{Current Sources:} current is counted positiv in drawing direction, voltage in opposite direction +\item \textbf{Voltage Sources:} voltage is counted positiv in drawing direction, current in opposite direction +\end{itemize} +With this convention, the power at loads is positive and negative at sources. \begin{LTXexample}[varwidth=true] \begin{circuitikz} @@ -820,11 +891,35 @@ Also \begin{circuitikz} \draw (0,0) to[R, i_=$i_1$] (2,0); \end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[V=10V, i_=$i_1$] (2,0); +\end{circuitikz} \end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[V<=10V, i_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz}[american] + \draw (0,0) to[V=10V, i_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz}[american] + \draw (0,0) to[V<=10V, i_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} \subsection{Voltages} +See introduction note at Currents (chapter \ref{currents}, page \pageref{currents})! \subsubsection{European style} The default, with arrows. Use option \texttt{europeanvoltage} or style \verb![european voltages]!. @@ -852,6 +947,30 @@ Also \end{circuitikz} \end{LTXexample} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[V=10V, i_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[V<=10V, i_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[I=1A, v_=$u_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[I<=1A, v_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + \subsubsection{American style} For those who like it (not me). Use option \texttt{americanvoltage} or set \verb![american voltages]!. \begin{LTXexample}[varwidth=true] @@ -878,6 +997,17 @@ Also \end{circuitikz} \end{LTXexample} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz}[american] + \draw (0,0) to[I=1A, v_=$u_1$] (2,0); +\end{circuitikz} +\end{LTXexample} + +\begin{LTXexample}[varwidth=true] +\begin{circuitikz}[american] + \draw (0,0) to[I<=1A, v_=$i_1$] (2,0); +\end{circuitikz} +\end{LTXexample} \subsection{Nodes} @@ -1328,15 +1458,31 @@ As for the switches: ;\end{circuitikz} \end{LTXexample} -And the mixer: +The ports of the mixer and adder can be addressed with numbers or \texttt{west}/\texttt{south}/\texttt{east}/\texttt{north}: \begin{LTXexample}[varwidth=true] \begin{circuitikz} \draw (0,0) node[mixer] (mix) {} - (mix.in 1) node[left] {in 1} - (mix.in 2) node[below] {in 2} - (mix.out) node[right] {out} + (mix.1) node[left] {1} + (mix.2) node[below] {2} + (mix.3) node[right] {3} + (mix.4) node[above] {4} ;\end{circuitikz} \end{LTXexample} + +The Wilkinson divider has: +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} \draw + (0,0) node[wilkinson] (w) {\SI{3}{dB}} + (w.in) to[short,-o] ++(-0.5,0) + (w.out1) to[short,-o] ++(0.5,0) + (w.out2) to[short,-o] ++(0.5,0) + (w.in) node[below left] {\texttt{in}} + (w.out1) node[below right] {\texttt{out1}} + (w.out2) node[above right] {\texttt{out2}} + ; +\end{circuitikz} +\end{LTXexample} + \subsubsection{Operational amplifier} The op amp defines the inverting input (\texttt{-}), the non-inverting input (\texttt{+}) and the output (\texttt{out}) anchors: \begin{LTXexample}[varwidth=true] @@ -1345,6 +1491,8 @@ And the mixer: (opamp.+) node[left] {$v_+$} (opamp.-) node[left] {$v_-$} (opamp.out) node[right] {$v_o$} + (opamp.up) --++(0,0.5) node[vcc]{5\,\textnormal{V}} + (opamp.down) --++(0,-0.5) node[vee]{-5\,\textnormal{V}} ;\end{circuitikz} \end{LTXexample} @@ -1373,32 +1521,6 @@ The fully differential op amp defines two outputs: ;\end{circuitikz} \end{LTXexample} - -The circulator defined ports 1, 2 and 3: -\begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) node[circulator] (c) {} - (c.1) node[left] {\texttt{1}} - (c.2) node[right] {\texttt{2}} - (c.3) node[below] {\texttt{3}} - ; - \end{circuitikz} -\end{LTXexample} - -The Wilkinson divider has: - \begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) node[wilkinson] (w) {\SI{3}{dB}} - (w.in) to[short,-o] ++(-0.5,0) - (w.out1) to[short,-o] ++(0.5,0) - (w.out2) to[short,-o] ++(0.5,0) - (w.in) node[below left] {\texttt{in}} - (w.out1) node[below right] {\texttt{out1}} - (w.out2) node[above right] {\texttt{out2}} - ; - \end{circuitikz} -\end{LTXexample} - \subsubsection{Double bipoles} All the (few, actually) double bipoles/quadrupoles have the four anchors, two for each port. The first port, to the left, is port \texttt{A}, having the anchors \texttt{A1} (up) and \texttt{A2} (down); same for port \texttt{B}. They also expose the \texttt{base} anchor, for labelling: @@ -1426,63 +1548,94 @@ the four anchors, two for each port. The first port, to the left, is port \textt However: \begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) node[coupler] (c) {\SI{10}{dB}} - (c.1) to[short,-o] ++(-0.5,0) - (c.2) to[short,-o] ++(0.5,0) - (c.3) to[short,-o] ++(0.5,0) - (c.4) to[short,-o] ++(-0.5,0) - (c.1) node[below left] {\texttt{1}} - (c.2) node[below right] {\texttt{2}} - (c.3) node[above right] {\texttt{3}} - (c.4) node[above left] {\texttt{4}} - ; - \end{circuitikz} - \end{LTXexample} +\begin{circuitikz} \draw + (0,0) node[coupler] (c) {\SI{10}{dB}} + (c.1) to[short,-o] ++(-0.5,0) + (c.2) to[short,-o] ++(0.5,0) + (c.3) to[short,-o] ++(0.5,0) + (c.4) to[short,-o] ++(-0.5,0) + (c.1) node[below left] {\texttt{1}} + (c.2) node[below right] {\texttt{2}} + (c.3) node[above right] {\texttt{3}} + (c.4) node[above left] {\texttt{4}} + ; +\end{circuitikz} +\end{LTXexample} - \begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) node[coupler2] (c) {\SI{3}{dB}} - (c.1) to[short,-o] ++(-0.5,0) - (c.2) to[short,-o] ++(0.5,0) - (c.3) to[short,-o] ++(0.5,0) - (c.4) to[short,-o] ++(-0.5,0) - (c.1) node[below left] {\texttt{1}} - (c.2) node[below right] {\texttt{2}} - (c.3) node[above right] {\texttt{3}} - (c.4) node[above left] {\texttt{4}} - ; - \end{circuitikz} +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} \draw + (0,0) node[coupler2] (c) {\SI{3}{dB}} + (c.1) to[short,-o] ++(-0.5,0) + (c.2) to[short,-o] ++(0.5,0) + (c.3) to[short,-o] ++(0.5,0) + (c.4) to[short,-o] ++(-0.5,0) + (c.1) node[below left] {\texttt{1}} + (c.2) node[below right] {\texttt{2}} + (c.3) node[above right] {\texttt{3}} + (c.4) node[above left] {\texttt{4}} + ; +\end{circuitikz} \end{LTXexample} \subsection{Input arrows} -\subsubsection*{two ports} -The new two ports all have a defined direction. If one needs opposite direction, just place them from right to left. With the option \texttt{>} a input arrow is drawn: -\begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) to[short,o-] ++(0.3,0) - to[lowpass,>] ++(2,0) - to[adc,>] ++(2,0) - to[fft,>] ++(2,0) - to[short,-o] ++(0.3,0); - \end{circuitikz} +\subsubsection*{Two ports} +With the option \texttt{>} you can draw an arrow to the input of the block diagram symbols. +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} \draw + (0,0) to[short,o-] ++(0.3,0) + to[lowpass,>] ++(2,0) + to[adc,>] ++(2,0) + to[short,-o] ++(0.3,0); +\end{circuitikz} \end{LTXexample} -\subsubsection*{multi ports} -Since inputs and outputs can vary, input arrows can be placed as nodes: + +\subsubsection*{Multi ports} +Since inputs and outputs can vary, input arrows can be placed as nodes. Note that you have to rotate the arrow on your own: \begin{LTXexample}[varwidth=true] - \begin{circuitikz} \draw - (0,0) node[mixer] (m) {} - (m.in1) to[short,-o] ++(-1,0) - (m.in2) to[short,-o] ++(0,-1) - (m.out) to[short,-o] ++(1,0) - (m.in1) node[inputarrow] {} - (m.in2) node[inputarrow,rotate=90] {}; - \end{circuitikz} +\begin{circuitikz} \draw + (0,0) node[mixer] (m) {} + (m.1) to[short,-o] ++(-1,0) + (m.2) to[short,-o] ++(0,-1) + (m.3) to[short,-o] ++(1,0) + (m.1) node[inputarrow] {} + (m.2) node[inputarrow,rotate=90] {}; +\end{circuitikz} +\end{LTXexample} + + +\subsection{Labels and custom twoport boxes} +Some twoports have the option to place a normal label (\texttt{l=}) and a inner label (\texttt{t=}). +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \ctikzset{bipoles/amp/width=0.9} + \draw (0,0) to[amp,t=LNA,l_=$F{=}0.9\,$dB,o-o] ++(3,0); +\end{circuitikz} \end{LTXexample} +\subsection{Box option} +Some devices have the possibility to add a box around them. The inner symbol scales down to fit inside the box. +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} \draw + (0,0) node[mixer,box,anchor=east] (m) {} + to[amp,box,>,-o] ++(2.5,0) + (m.west) node[inputarrow] {} to[short,-o] ++(-0.8,0) + (m.south) node[inputarrow,rotate=90] {} -- + ++(0,-0.7) node[oscillator,box,anchor=north] {}; +\end{circuitikz} +\end{LTXexample} + + +\subsection{Dash optional parts} +To show that a device is optional, you can dash it. The inner symbol will be kept with solid lines. +\begin{LTXexample}[varwidth=true] +\begin{circuitikz} + \draw (0,0) to[amp,l=\SI{10}{dB}] ++(2.5,0); + \draw[dashed] (2.5,0) to[lowpass,l=opt.] ++(2.5,0); +\end{circuitikz} +\end{LTXexample} \subsection{Transistor paths}\label{sec:transasbip} @@ -1713,10 +1866,10 @@ Just substitute every occurrence of the environment \verb!circuitikz! with \verb \begin{circuitikz}[scale=1.4]\draw (0,0) to[C, l=10<\micro\farad>] (0,2) -- (0,3) to[R, l=2.2<\kilo\ohm>] (4,3) -- (4,2) - to[L, l=12<\milli\henry>, i=$i_1$] (4,0) -- (0,0) + to[L, l=12<\milli\henry>, i=$i_1$,v=b] (4,0) -- (0,0) (4,2) { to[D*, *-*, color=red] (2,0) } (0,2) to[R, l=1<\kilo\ohm>, *-] (2,2) - to[cV, v=$\SI{.3}{\kilo\ohm} i_1$] (4,2) + to[cV, i=1,v=$\SI{.3}{\kilo\ohm} i_1$] (4,2) (2,0) to[I, i=1<\milli\ampere>, -*] (2,2) ;\end{circuitikz} \end{LTXexample} @@ -1850,113 +2003,10 @@ Just substitute every occurrence of the environment \verb!circuitikz! with \verb \end{lstlisting} \end{tabular} -\section{Revision history} - -\begin{itemize} - \item[\itshape version 0.4] (in progress) - \begin{enumerate} - \item minor improvements to documentation - \item comply with TDS - \item merge high frequency symbols by Stefan Erhardt - \item added switch (not opening nor closing) - \item added added solder dot in some transistors - \item improved ConTeXt compatibility - \end{enumerate} -\item[\itshape version 0.3.1] - \begin{enumerate} - \item typo in documentation - \item fixed an error in the angle computation in voltage and current routines - \item fixed problem with label size when scaling a tikz picture - \item added gas filled surge arrester - \item added compatibility option to work with Tikz's own circuit library - \end{enumerate} -\item[\itshape version 0.3.0] (20121229) - \begin{enumerate} - \item fixed gate node for a few transistors - \item added mixer - \item added fully differential op amp (by Kristofer M.~Monisit) - \item now general settings for the drawing of voltage can be overridden for specific components - \item made arrows more homogeneous (either the current/voltage one, or latex' by pgf) - \item added the single battery cell - \item added fuse and asymmetric fuse - \item added toggle switch - \item added varistor, photoresistor, thermocouple, push button - \item added thermistor, thermistor ptc, thermistor ptc - \item fixed misalignment of voltage label in vertical bipoles with names - \item added isfet - \item added noiseless, protective, chassis, signal and reference grounds (Luigi Luigi «Liverpool») - \end{enumerate} -\item[\itshape version 0.2.4] (20110911). - \begin{enumerate} - \item added square voltage source (contributed by Alistair Kwan) - \item added buffer and plain amplifier (contributed by Danilo Piazzalunga) - \item added squid and barrier (contributed by Cor Molenaar) - \item added antenna and transmission line symbols contributed by Leonardo Azzinnari - \item added the changeover switch spdt (suggestion of Fabio Maria Antoniali) - \item rename of context.tex and context.pdf (thanks to Karl Berry) - \item updated the email address - \item in documentation, fixed wrong (non-standard) labelling of the axis in an example (thanks to prof. Claudio Beccaria) - \item fixed scaling inconsistencies in quadrupoles - \item fixed division by zero error on certain vertical paths - \item introduced options straighlabels, rotatelabels, smartlabels - \end{enumerate} -\item[\itshape version 0.2.3] (20091118). - \begin{enumerate} - \item fixed compatibility problem with label option from tikz - \item Fixed resizing problem for shape ground - \item Variable capacitor - \item polarized capacitor - \item \ConTeXt\ support (read the manual!) - \item nfet, nigfete, nigfetd, pfet, pigfete, pigfetd (contribution of Clemens Helfmeier and Theodor - Borsche) - \item njfet, pjfet (contribution of Danilo Piazzalunga) - \item pigbt, nigbt - \item \emph{backward incompatibility} potentiometer is now the standard resistor-with-arrow-in-the-middle; the old potentiometer is now known as variable resistor (or vR), similarly to variable inductor and variable capacitor - \item triac, thyristor, memristor - \item new property "name" for bipoles - \item fixed voltage problem for batteries in american voltage mode - \item european logic gates - \item \emph{backward incompatibility} new american standard inductor. Old american inductor now called "cute inductor" - \item \emph{backward incompatibility} transformer now linked with the chosen type of inductor, and version with core, too. Similarly for variable inductor - \item \emph{backward incompatibility} styles for selecting shape variants now end are in the plural to avoid conflict with paths - \item new placing option for some tripoles (mostly transistors) - \item mirror path style - \end{enumerate} - -\item[\itshape version 0.2.2] (20090520). - \begin{enumerate} - \item Added the shape for lamps. - \item Added options \texttt{europeanresistor}, \texttt{europeaninductor}, \texttt{americanresistor} and \texttt{americaninductor}, with corresponding styles. - \item \textbf{Fixed}: error in transistor arrow positioning and direction under negative \texttt{xscale} and \texttt{yscale}. - \end{enumerate} - - -\item[\itshape version 0.2.1] (20090503). - \begin{enumerate} - \item Op-amps added. - \item Added options \texttt{arrowmos} and \texttt{noarrowmos}. - \end{enumerate} - - -\item[\itshape version 0.2] First public release on CTAN (20090417). - \begin{enumerate} - \item \textbf{Backward incompatibility}: labels ending with \texttt{:}\textit{angle} are not parsed for positioning anymore. - \item Full use of \TikZ\ keyval features. - \item White background is not filled anymore: now the network can be drawn on a background picture as well. - \item Several new components added (logical ports, transistors, double bipoles, \ldots). - \item Color support. - \item Integration with {\ttfamily siunitx}. - \item Voltage, american style. - \item Better code, perhaps. General cleanup at the very least. - \end{enumerate} -\item[\itshape version 0.1] First public release (2007). -\end{itemize} - +% % changelog.tex will be updated by makefile from CHANGELOG.md +\section{Changelog} +\input{changelog.tex} \printindex - -\end{document} - - - +\end{document}
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/circuitikz/compatibility.pdf b/Master/texmf-dist/doc/latex/circuitikz/compatibility.pdf Binary files differdeleted file mode 100644 index a6cd2514c8f..00000000000 --- a/Master/texmf-dist/doc/latex/circuitikz/compatibility.pdf +++ /dev/null diff --git a/Master/texmf-dist/doc/latex/circuitikz/compatibility.ltx b/Master/texmf-dist/doc/latex/circuitikz/compatibility.tex index 7259479e78b..7259479e78b 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/compatibility.ltx +++ b/Master/texmf-dist/doc/latex/circuitikz/compatibility.tex |