2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-18 19:18:21 +02:00
LaTeX-examples/circuits/simple-example/simple-example.tex
Martin Thoma 7740f0147f Remove trailing spaces
The commands

find . -type f -name '*.md' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

and

find . -type f -name '*.tex' -exec sed --in-place 's/[[:space:]]\+$//' {} \+

were used to do so.
2015-10-14 14:25:34 +02:00

18 lines
478 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}