TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking for a tool to draw vectorized digital logical circuits. I first wanted to use Circuitikz, but found out that their are only two input lines for AND and OR gates. Are there any options to use a LaTeX package where gates have more input lines. Or are there some usefull tools that can produce vectorized pdf files. I need these tools for a course I'm writing about digital electronics and processors.

thanks in advance.

share|improve this question
Have you checked here: tex.stackexchange.com/questions/3565/… ? – Richard Terrett Mar 16 '11 at 15:05
up vote 7 down vote accepted

An example for the TikZ logic gates with four inputs:

\begin{tikzpicture}[circuit logic US]
  \node[and gate, inputs={normal,inverted,normal,inverted}] (A) {};
  \draw (A.input 1 -| -1,0) -- (A.input 1)
        (A.input 2 -| -1,0) -- (A.input 2)
        (A.input 3 -| -1,0) -- (A.input 3)
        (A.input 4 -| -1,0) -- (A.input 4)


For more information, see PGF/TikZ 2.10 manual, section 29.3

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.