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

Is it possible to add two ports to the gates (nand, and, or, not) in circuitikz on the top and bottom for reference voltages in a similar fashion to how they exist for the op amp?

share|improve this question

You can use the same mechanism given for op-amps in the manual by defining your own ports

\draw (0,0) node[op amp] (opamp) {}
 (opamp.+) node[ left ] {$v_+$}
 (opamp.-) node[left] {$v_-$}
 (opamp.out) node[right] {$v_o$}
 (opamp.down) node[ground] {}
 (opamp.up) ++ (0,.5) node[above] {\SI{12}{\volt}}
 -- (opamp.up)
\draw (4,0) node[european and port] (euand) {} 
(euand.south) node[ground] {}
(euand.north) ++(0,0.5) node[above] {\SI{12}{\volt}}
-- (euand.north);

enter image description here

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.