0

experts of TikZ. I'm trying to do a simple thing: create the logic circuit S=A.B.C with three lines entering the AND port (not two!). what I want

I thank you in advance, legendary heroes!

Edit.: All I can do is this:

    \documentclass{article}
\usepackage{circuitikz}
\begin{document}

\begin{circuitikz} \draw
(0, 2) node[and port](myand){}
        (myand.in 1) node[anchor=east]{A}
        (myand.in 2) node[anchor=east]{B}
        (myand.in 3) node[anchor=east]{C}
        (myand.out 4) node[anchor=west]{S};
\end{circuitikz}

\end{document}
2

1 Answer 1

3

enter image description here

    \documentclass{article}
\usepackage{circuitikz}
\begin{document}

\begin{circuitikz} \draw
(0, 2) node[and port, number inputs=3](myand){}
        (myand.in 1) node[anchor=east]{A}
        (myand.in 2) node[anchor=east]{B}
        (myand.in 3) node[anchor=east]{C}
        ;
\end{circuitikz}

\end{document}

for the out side

\documentclass{article}
\usepackage{circuitikz}
\begin{document}

\begin{circuitikz} \draw
(0, 2) node[and port, number inputs=3](myand){}
        (myand.in 1) node[anchor=east]{A}
        (myand.in 2) node[anchor=east]{B}
        (myand.in 3) node[anchor=east]{C}
        (myand.out) node[anchor=west]{S}
        ;
\end{circuitikz}

\end{document}

enter image description here

1
  • 1
    Yes, +1. To have the shape the OP posted, use \ctikzset{logic ports=ieee}.
    – Rmano
    Commented Mar 15, 2022 at 8:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .