How can I use circuitikz (or similar library for small code) to generate logic circuit diagrams with full variable life.

x ---[and1]--- z

y ---[and1]--- z

So f(x,y)=z

An image of the kind of thing I'd like to generate:


  • 2
    Welcome to TeX.sx! It's not necessary to sign your questions (as there is already a box with your username below it) or to begin them with a greeting.
    – Werner
    Oct 28, 2011 at 3:33
  • How is this question different from: tex.stackexchange.com/questions/32839/…?
    – Werner
    Oct 28, 2011 at 3:35
  • @Jake: Ah, I see.
    – Werner
    Oct 28, 2011 at 3:40
  • Just to clarify: You only want to label the inputs/outputs and generate a blank logic table, not automatically calculate the output, right?
    – Jake
    Oct 28, 2011 at 3:58
  • Right. Although it would be interesting to see the other...
    – A T
    Oct 28, 2011 at 4:25


Browse other questions tagged .