simple-example.tex 478 B

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