2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/circuits/simple-example/simple-example.tex
2013-01-18 09:45:02 +01:00

18 lines
480 B
TeX

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
\setlength\PreviewBorder{0mm}
\usepackage{circuitikz}
\begin{document}
\begin{preview}
\begin{circuitikz}
\draw (0,0) node[european and port] (myand){}
(myand.in 1) node[anchor=east]{P}
(myand.in 2) node[anchor=east]{Q}
(1.8,0) node[european not port] (mynot){}
(mynot.out) node[anchor=west]{S}
(myand.out) -- (mynot.in);
\end{circuitikz}
\end{preview}
\end{document}