%!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 \pgfplotsset{compat=1.18} %!tikz preamble begin %!tikz preamble begin \usepackage{circuitikz} %!tikz preamble begin %!tikz preamble end \begin{document} %!tikz source begin \begin{circuitikz} \draw (0,2) node (myand1) [xshift=1cm,and port] {} (myand1.out) node [anchor=south west] {\it A.B} (myand1.in 1) node (A1) [anchor=east,xshift=-1cm] {A} (myand1.in 2) node (B1) [anchor=east,xshift=-1cm,yshift=-.7cm] {B} (0,0) node (mynot1) [not port, scale=.5] {} (mynot1.out) node [anchor=south west] {$\bar{B}$} (2.5,-.280) node (myor1) [or port] {} (myor1.out) node [anchor=south west,xshift=.05cm] {$\bar{B}\texttt{+}C$} (4,1.72) node (myor2) [or port] {} (myor1.in 2) node (C1) [anchor=east,xshift=-2.5cm] {C} (myor2.out) node [anchor=south west] {{\it A.B}\texttt{+}$(\bar{B}$\texttt{+}$C)$}; \draw (myor2.out) -- ++(1cm,0); \draw (myand1.in 2) |- (mynot1.in); \draw (mynot1.out) -| (myor1.in 1); \draw (myand1.out) -- (myor2.in 1); \draw (myor1.out) -- (myor2.in 2); \draw (myand1.in 1) -- (A1); \foreach \Point in {(A1),(B1), (C1)}{ \node [xshift=.2cm] at \Point {\textbullet}; } \node [xshift=1.25cm] at (B1) {$\bullet$}; \node [xshift=1cm] at (myor2.out) {$\bullet$}; \draw (B1) -- ++(1.25cm,0); \draw (myor1.in 2) -- (C1); \end{circuitikz} \end{document}