\documentclass{article}
\usepackage{circuitikz}
\begin{document}
\begin{circuitikz} \draw
(0,3) node[not port] (mynot1) {}
(mynot1.in) node[anchor=east] {$r$}
(mynot1.out) node[anchor=south] {$\neg r$}
(0,1) node[not port] (mynot2) {}
(mynot2.in) node[anchor=east] {$q$}
(mynot2.out) node[anchor=south] {$\neg q$}
(3,4) node[and port] (myand1) {}
(myand1.in 1) node[anchor=east] {$p$}
(myand1.out) node[anchor=west] {$p \wedge \neg r$}
(3,0) node[and port] (myand2) {}
(myand2.in 2) node[anchor=east] {$r$}
(myand2.out) node[anchor=west] {$\neg q \wedge r$}
(mynot1.out) -| (myand1.in 2)
(mynot2.out) -| (myand2.in 1)
(5,2) node[or port] (myor) {}
(myor.out) node[anchor=west] {$(p \wedge \neg r) \vee (\neg q \wedge r)$}
(myand1.out) |- (myor.in 1)
(myand2.out) |- (myor.in 2)
;\end{circuitikz}
\end{document}
The above is how I draw my logic circuit by using package circuitikz. I can basically figure out how to draw the circuit but it looks ugly, see
1) I want it to look nicer, i.e. smaller "not" gate, colored label text, more compact in positioning, arrowheads on the input and output, etc. just like the style of this:
Any idea?
\documentclass
and the appropriate packages so that those trying to help don't have to recreate it. While solving problems is fun, setting them up is not. Then those trying to help can simply cut and paste your MWE and get started on solving problem.