Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132928 views
License: OTHER
1
\documentclass{article}
2
\usepackage[pdftex,active,tightpage]{preview}
3
\setlength\PreviewBorder{0mm}
4
5
\usepackage{circuitikz}
6
7
\begin{document}
8
\begin{preview}
9
\begin{circuitikz}
10
\draw (0,0) node[european and port] (myand){}
11
(myand.in 1) node[anchor=east]{P}
12
(myand.in 2) node[anchor=east]{Q}
13
(1.8,0) node[european not port] (mynot){}
14
(mynot.out) node[anchor=west]{S}
15
(myand.out) -- (mynot.in);
16
\end{circuitikz}
17
\end{preview}
18
\end{document}
19
20