Is there a TikZ library for drawing circuits like the following ones
Asked
Active
Viewed 1,635 times
1 Answers
6
Indeed there are. If you look at the TikZ manual there is a section starting on page 547 that describes all of the circuit libraries in great depth. Here is a quick quote showing the most common libraries:
Also of note is the circuitikz package (\usepackage{circuitikz}) - the documentation for that can be found here.
Some of your components I can't seem to find (I'm also in a bit of a rush...) but you can also create custom components. Ex:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{calc}
\begin{document}
\begin{tikzpicture}[
inout/.style={
rectangle,
draw,
minimum size=1cm,
inner sep=2pt,
append after command={
foreach \x in {1,...,4}{
($(\tikzlastnode.south west)!0.2*\x!(\tikzlastnode.north west)$) edge[draw] ++(-2mm,0mm)
($(\tikzlastnode.south east)!0.2*\x!(\tikzlastnode.north east)$) edge[draw] ++(2mm,0mm)
}
}
}
]
\node[inout] (d1) at (1,1) {in};
\end{tikzpicture}
\end{document}
which produces
(Code from this question.)
Hope this helps!



!0.2*\x!, the use of$, etc. Cf. also the question you asked and the answer by @percusse – user94293 Aug 11 '16 at 14:09