diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex index 4186402412f..f69ca43b060 100644 --- a/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex +++ b/Master/texmf-dist/doc/latex/circuitikz/circuitikzmanual.tex @@ -280,6 +280,7 @@ The \texttt{use fpu reciprocal} key seems to have no side effects, but given tha Here, we will provide a list of incompabilitys between different version of circuitikz. We will try to hold this list short, but sometimes it is easier to break with old syntax than including a lot of switches and compatibility layers. You can check the used version at your local installation using the macro \verb!\pgfcircversion{}!. \begin{itemize} + \item Version 1.3.1 removes the warning if you do not specify a voltage direction. \item After 1.2.7 a big code reorganization (which by the way fixed some bug) has been made; no changes should be visible, but a fallback point at 1.2.7 has been added. \item You \textbf{must} upgrade to v1.2.7 or newer if you use a \TikZ{} 3.1.8 or 3.1.8a (but better upgrade both packages to the current version). \item After v1.2.1: \textbf{Important:} the routine that implement the \texttt{to[...]} component positioning has been rewritten. That should enhance the line joins in path, and it's safer, but it can potentially change behavior. @@ -409,7 +410,7 @@ Feel free to load the package with your own cultural options: \item \texttt{RPvoltages} (meaning Rising Potential voltages): the arrow is in direction of rising potential, like in \texttt{oldvoltagedirection}, but batteries and current sources are fixed to follow the passive/active standard; \item \texttt{EFvoltages} (meaning Electric Field voltages): the arrow is in direction of the electric field, like in \texttt{nooldvoltagedirection}, but batteries are fixed; \end{itemize} - If none of these option are given, the package will default to \texttt{nooldvoltagedirection}, but will give a warning. The behavior is also selectable circuit by circuit with the \texttt{voltage dir} style. + If none of these option are given, the package will default to \texttt{nooldvoltagedirection}. The behavior is also selectable circuit by circuit with the \texttt{voltage dir} style. \item \texttt{betterproportions}\footnote{May change in the future!}: nicer proportions of transistors in comparision to resistors; \end{itemize} @@ -431,7 +432,15 @@ Feel free to load the package with your own cultural options: \section{Tutorials} -To draw a circuit, you have to load the \texttt{circuitikz} package; this can be done with +Before even starting with \Circuitikz{} you should be sure to have understood the basics of \TikZ{}. It is \emph{higlhly recommended} that you read and go through \emph{at least} the following parts of the \TikZ{} manual: +\begin{itemize} + \item ``Tutorial: A Picture for Karl's Students'' (around page 30); + \item ``Specifying Coordinates'' (around page 131) + \item ``Nodes and their shapes'' (around page 220) +\end{itemize} +\dots but obviously a good knowledge of \TikZ{} will help you a lot. Remember, a circuit drawn with \Circuitikz{} is nothing more than a \texttt{tikzpicture} with an (albeit powerful and extended) set of shapes and commodity macros. + +Said that, to draw a circuit, you have to load the \Circuitikz{} package; this can be done with \begin{lstlisting} \usepackage[siunitx, RPvoltages]{circuitikz} \end{lstlisting} @@ -1133,7 +1142,7 @@ In the last (green) example, you can see a workaround using local path and the k \begin{LTXexample}[varwidth=true, basicstyle=\small\ttfamily, pos=t] -Plotted using Ti\emph{k}Z version \pgfversion{} and CircuitTi\emph{k}Z version \pgfcircversion{}. +Plotted using Ti\emph{k}Z version \pgfversion{} and CircuiTi\emph{k}Z version \pgfcircversion{}. \begin{tikzpicture} \draw[color=red] (0,0) to[R] +(2,0) +(0,0) -- ++(0,-1); @@ -1355,11 +1364,7 @@ You can change the visual appearance of a circuit by using a circuit style diffe Let's see the effect over a simple circuit\footnote{This is a just an example, the circuit is not intended to be functional.}. -\def\killdepth#1{{\raisebox{0pt}[\height][0pt]{#1}}} -\newcommand\bjtname[1]{($(#1.C)!0.5!(#1.E)$) node[anchor=west]{\killdepth{#1}} } \begin{lstlisting}[basicstyle=\scriptsize\ttfamily] -\def\killdepth#1{{\raisebox{0pt}[\height][0pt]{#1}}} -\newcommand\bjtname[1]{($(#1.C)!0.5!(#1.E)$) node[anchor=west]{\killdepth{#1}} } \begin{circuitikz}[american, cute inductors] \node [op amp](A1){\texttt{OA1}}; \draw (A1.-) to[short] ++(0,1) coordinate(tmp) to[R, l_=$R$] (tmp -| A1.out) to[short] (A1.out); @@ -1368,8 +1373,8 @@ Let's see the effect over a simple circuit\footnote{This is a just an example, t \draw (A1.-) to [L=$L$] ++(-2,0) coordinate(tmp) to[sV, l=$v_s$, fill=yellow] (tmp |-GND) node[ground]{}; \draw (A1.out) to[R=$R_s$] ++(2,0) coordinate(bb) to[I, l_=$I_B$, invert] ++(0,2) node[vcc](VCC){}; \draw (bb) to[D, l=$D$, *-] ++(0,-2) coordinate(bb1) to[R=$R_m$] ++(0,-2) node[vee](VEE){}; - \draw (bb) --++(1,0) node[npn, anchor=B](Q1){} \bjtname{Q1}; - \draw (bb1) --++(1,0) node[pnp, anchor=B](Q2){} \bjtname{Q2}; + \draw (bb) --++(1,0) node[npn, anchor=B](Q1){Q1}; + \draw (bb1) --++(1,0) node[pnp, anchor=B](Q2){Q2}; \draw (Q1.E) -- (Q2.E) ($(Q1.E)!0.5!(Q2.E)$) to [short, *-o, name=S] ++(2.5,0) node[right]{$v_{o_Q}$}; \draw (S.s) to[european resistor, l=$Z_L$, *-] (S.s|-GND) node[ground]{}; @@ -1391,8 +1396,8 @@ This code, with the default parameters, will render like the following image. \draw (A1.-) to [L=$L$] ++(-2,0) coordinate(tmp) to[sV, l=$v_s$, fill=yellow] (tmp |-GND) node[ground]{}; \draw (A1.out) to[R=$R_s$] ++(2,0) coordinate(bb) to[I, l_=$I_B$, invert] ++(0,2) node[vcc](VCC){}; \draw (bb) to[D, l=$D$, *-] ++(0,-2) coordinate(bb1) to[R=$R_m$] ++(0,-2) node[vee](VEE){}; - \draw (bb) --++(1,0) node[npn, anchor=B](Q1){} \bjtname{Q1}; - \draw (bb1) --++(1,0) node[pnp, anchor=B](Q2){} \bjtname{Q2}; + \draw (bb) --++(1,0) node[npn, anchor=B](Q1){Q1}; + \draw (bb1) --++(1,0) node[pnp, anchor=B](Q2){Q2}; \draw (Q1.E) -- (Q2.E) ($(Q1.E)!0.5!(Q2.E)$) to [short, *-o, name=S] ++(2.5,0) node[right]{$v_{o_Q}$}; \draw (S.s) to[european resistor, l=$Z_L$, *-] (S.s|-GND) node[ground]{}; |