TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 want to draw a logical circuit with a multiplexer. Is there any symbol provided by the TikZ package? I'm using the TikZ library circuits.logic to draw logical circuit symbols.

Or is there any possibility to built a multiplexer by myself and provide the number of inputs I need (so I can connect them to other logical symbols)?

share|improve this question
Perhaps show us a hand-drawn picture of your multiplexer. – Stefan Kottwitz Nov 24 '11 at 19:24
In terms of creating it yourself (with inputs (which would be anchors in TikZ)) you can have a look here: tex.stackexchange.com/questions/33150/creating-node-shapes. If this is the road you wish to go down and have additional questions, you can ask more specific/directed ones. – Roelof Spijker Nov 24 '11 at 23:49

Have you tried the circuitikz package? I think it exceeds the possibilities of circuits.logic. The documentation has got a section entitled “5.1.1 Logic Ports”, which might help you.

Or do you rather want it to be just a box with some inputs and outputs as depicted in the following image?

Prime gate with triple multiplexer.

Prime gate with triple multiplexer.
Image source: By MovGP0 at de.wikipedia.org, Licensed under CC-BY-SA-2.0-DE.

share|improve this answer
Yes I tried the circuitikz package. But I use tikz to have more flexibility to create logical circuits. The graphic you posted is exactly what I want. I want to use labels for the inputs and connect the inputs and outputs to other logical symbols. – domna Nov 24 '11 at 20:16
In this thread I found a reference to a TeXample, which you could possibly change to meet your needs. By the way, it is by Martin Scharrer, so maybe he has more insight on how to achieve this. – brian-ammon Nov 24 '11 at 20:50

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.