|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: CircuitsMikko Heiskanen a écrit :
> How does one use the circuit-shapes? I can see there are several > defined in various files, but there is no mention of how to use them > in the manual (that is, resistors etc., not logic gates). Here is an example. \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc,circuits.logic.IEC,circuits.ee.IEC} \begin{document} \def\tikzDipoleWidth{2cm} \begin{tikzpicture}[circuit ee IEC] \coordinate[label=left:$A$] (A) at (0,0); \coordinate (1top) at ($(A)+(.25,0)$); \coordinate (2top) at ($(1top)+(.5*\tikzDipoleWidth,0)$); \coordinate (3top) at ($(2top)+(.5*\tikzDipoleWidth,0)$); \coordinate (4top) at ($(3top)+(\tikzDipoleWidth,0)$); \coordinate (5top) at ($(4top)+(.5*\tikzDipoleWidth,0)$); \coordinate (6top) at ($(5top)+(.5*\tikzDipoleWidth,0)$); \coordinate[label=left:$B$] (B) at ($(A)+(0,-1.5*\tikzDipoleWidth)$); \coordinate (1bottom) at (1top |- B); \coordinate (2bottom) at (2top |- B); \coordinate (3bottom) at (3top |- B); \coordinate (4bottom) at (4top |- B); \coordinate (5bottom) at (5top |- B); \coordinate (6bottom) at (6top |- B); \coordinate (1mid) at ($(1top)!.5!(1bottom)$); \coordinate (2mid) at ($(2top)!.5!(2bottom)$); % \draw (A) to (3top) to[resistor={info={$R$}}] (4top) to (6top); \draw (1bottom) to [voltage source={info={$E$},direction info={->}}] (1mid) to[resistor={info={$R$}}] (1top); \draw (2bottom) to [current source={info={$\eta$},direction info={->}}] (2mid) to[resistor={info={$R$}}] (2top); \draw (3bottom) to [current source={info={$\eta$},direction info={->}}] (3top); \draw (4bottom) to [resistor={info={$R$}}] (4top); \draw (5bottom) to [current source={info={$\eta$},direction info={<-}}] (5top); \draw (6bottom) to [voltage source={info={$E$},direction info={<-}}] (6top); \draw (B) to (6bottom); \end{tikzpicture} \end{document} ------------------------------------------------------------------------------ Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free embeddable forum powered by Nabble | Forum Help |