This TikZ library is designed to enhance the existing circuits.logic.IEC library with additional logic components (e.g., adders, multiplexers, ...).
Just copy the files pgflibraryshapes.gates.logic.custom.code.tex and tikzlibrarycircuits.logic.custom.code.tex to the root of your latex directory and include them like a normal TikZ library in your main TeX file. The files are then found and included by your TeX compiler through the naming convention.
\usepackage{pgf,tikz}
\usetikzlibrary{
circuits.logic.custom,
circuits.logic.IEC,
}
A full working example of the library can be found in example.tex.
- Half Subtractor
- Multiplexer
- Demultiplexer
- RS-Latch
- D-FlipFlop
- Martin Scharrer for his superb example at TeXample.net
This project tries to stay as close as possible to the workings of the original circuits.logic.IEC TikZ library where it seems appropriate (e.g., variable number of inputs, choice of inversion, ...). However, this does not make sense for every component. If you have suggestions or already have a proper pull request in place, please open up an issue and I will try to incorporate your contribution into this project.
The original circuits.logic.IEC files can usually be found in your local TeX distribution folder at the following locations:
- [TeX distro root]/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.IEC.code.tex
- [TeX distro root]/texmf-dist/tex/generic/pgf/libraries/shapes/circuits/pgflibraryshapes.gates.logic.IEC.code.tex
This project is licensed under the GPL License - see the LICENSE.md file for details