texmf-dist/doc/latex/circuitikz/compatibility.tex
raw| 1 | \documentclass{standalone} |
| 2 | |
| 3 | \usepackage{tikz} |
| 4 | \usetikzlibrary{circuits.ee.IEC} |
| 5 | \usetikzlibrary{positioning} |
| 6 | |
| 7 | \usepackage[compatibility, RPvoltages]{circuitikz} |
| 8 | \ctikzset{bipoles/length=.9cm} |
| 9 | |
| 10 | \begin{document} |
| 11 | \begin{tikzpicture}[circuit ee IEC] |
| 12 | \draw (0,0) to [resistor={name=R}] (0,2) |
| 13 | to[diode={name=D}] (3,2); |
| 14 | \draw (0,0) to[*R=$R_1$] (1.5,0) to[*Tnpn] (3,0) |
| 15 | to[*D](3,2); |
| 16 | \end{tikzpicture} |
| 17 | \end{document} |