Init
This commit is contained in:
32
IEC/NotIEC.tex
Normal file
32
IEC/NotIEC.tex
Normal file
@@ -0,0 +1,32 @@
|
||||
%!tikz editor 1.0
|
||||
\documentclass{article}
|
||||
\usepackage{tikz}
|
||||
\usepackage[graphics, active, tightpage]{preview}
|
||||
\usepackage{circuitikz}
|
||||
\PreviewEnvironment{tikzpicture}
|
||||
|
||||
%!tikz preamble begin
|
||||
\usetikzlibrary{circuits.logic.IEC, positioning}
|
||||
\usepackage[utf8]{inputenc}
|
||||
%!tikz preamble end
|
||||
|
||||
|
||||
\begin{document}
|
||||
%!tikz source begin
|
||||
\begin{tikzpicture}[scale=1, transform shape,circuit logic IEC]
|
||||
\tikzstyle{branch}=[fill,shape=circle,minimum size=3pt,inner sep=0pt]
|
||||
\node[nand gate] at (1,1)(n1){};
|
||||
|
||||
\node (a) at (0,1.165) {$a$};
|
||||
\node (b) at (0,0.825) {$b$};
|
||||
\node (y) at (2.25,1) {$out$};
|
||||
|
||||
|
||||
\draw(n1.input 1) -- (a);
|
||||
\draw(n1.input 2) -- (b);
|
||||
\draw(n1.output) -- (y);
|
||||
|
||||
\end{tikzpicture}
|
||||
%!tikz source end
|
||||
|
||||
\end{document}
|
||||
Reference in New Issue
Block a user