Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{0mm}
4
5
\usepackage{tikz}
6
\usetikzlibrary{circuits.logic.IEC}
7
8
\begin{document}
9
\begin{preview}
10
\begin{tikzpicture}[circuit logic IEC]
11
\node[and gate, inputs={normal,normal}] (myand) {};
12
\draw (1,0) node[not gate, inputs={normal,normal}] (mynot) {};
13
14
\draw (myand.input 1 -| -0.8,0) node[anchor=east]{P} -- (myand.input 1);
15
\draw (myand.input 2 -| -0.8,0) node[anchor=east]{Q} -- (myand.input 2);
16
17
\draw (myand.output) -- (mynot.input);
18
\draw (mynot.output -| 1.8,0) node[anchor=west]{S} -- (mynot.output);
19
\end{tikzpicture}
20
\end{preview}
21
\end{document}
22
23