45 lines
963 B
TeX
45 lines
963 B
TeX
%!tikz editor 1.0
|
|
\documentclass{article}
|
|
\usepackage{pgf,tikz,pgfplots}
|
|
|
|
\usepackage{tkz-euclide}
|
|
|
|
\usetikzlibrary{angles, arrows.meta, quotes, calc, babel, fadings,quotes}
|
|
|
|
\usetikzlibrary{intersections,through,backgrounds}
|
|
|
|
|
|
\usepackage[graphics, active, tightpage]{preview}
|
|
\PreviewEnvironment{tikzpicture}
|
|
|
|
%!tikz preamble begin
|
|
|
|
%!tikz preamble begin
|
|
\usepackage{circuitikz}
|
|
%!tikz preamble end
|
|
|
|
|
|
\begin{document}
|
|
%!tikz source begin
|
|
\begin{tikzpicture}
|
|
% Circuit style
|
|
\ctikzset{
|
|
logic ports=ieee,
|
|
logic ports/scale=0.8,
|
|
% logic ports/fill=lightgray
|
|
}
|
|
|
|
\node[nand port] (Nand) at (0,-2){};
|
|
|
|
|
|
\draw (Nand.in 1) -- ++(-0,0) node[near end,above]{a};
|
|
\draw (Nand.in 2) -- ++(-0,0) node[near end,below]{b};
|
|
\draw[thick] (Nand.in 2) -- (Nand.in 1)node[midway](in){};
|
|
\draw (in.center) -- ++(-0.75,0) node[left]{in};
|
|
\draw (Nand.out) -- ++(0.25,0) node[right]{out};
|
|
%\draw (Not.in 1) -| (Not.in 2);
|
|
|
|
\end{tikzpicture}
|
|
%!tikz source end
|
|
|
|
\end{document} |