Graphics, Figures & Tablestikz | Draw a Multiplexer

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
white_owl
Posts: 12
Joined: Wed Apr 21, 2010 6:56 pm

tikz | Draw a Multiplexer

Post by white_owl »

Are there any tikz libraries which have ready-to-use multiplexer symbols?
I'd like to draw logical scheme with a set AND/OR/NOT gates and include there MUX-2 and MUX-4 elements.
Tried to make an expansion for circuit.logic library but received a lot of weird errors.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

Re: tikz | Draw a Multiplexer

Post by Willie »

Hi. A search through the internet yielded this package for circuit graphics:
http://www.ctan.org/pkg/circuit-macros
white_owl
Posts: 12
Joined: Wed Apr 21, 2010 6:56 pm

Re: tikz | Draw a Multiplexer

Post by white_owl »

Yes, circuit_macros package does have a pretty nice multiplexer symbol.
Unfortunately, this package is not available in MikTex... and most of the time I am working on Windows box. So I need a solution which is compatible with MikTex distribution.
Willie
Posts: 42
Joined: Sat Aug 27, 2011 3:43 am

tikz | Draw a Multiplexer

Post by Willie »

It is available, I have MiKTeX and I have it installed without even knowing. Did you check within your packages?
For a quick check, try the folloing code:

Code: Select all

\documentclass[a4paper,10pt,english]{article}
\usepackage{circuitikz}
\begin{document}
\begin{figure}[h]
\begin{circuitikz}
\draw (0,0) to[generic,v>=$U_1$] (2,0);
\end{circuitikz}
\end{figure}
\end{document}
And if you indeed don't have the package, you can get it with the package manager.
white_owl
Posts: 12
Joined: Wed Apr 21, 2010 6:56 pm

Re: tikz | Draw a Multiplexer

Post by white_owl »

Sorry, but circuitikz package does not have multiplexer symbol.
Post Reply