2pi / karnaugh-map

LaTeX package for drawing karnaugh maps with up to 6 variables
https://www.ctan.org/pkg/karnaugh-map
55 stars 12 forks source link
karnaugh karnaugh-map latex pgf variable-entered-map

karnaugh-map

This package draws karnaugh maps with 2, 3, 4, 5, and 6 variables. It also contains commands for filling the karnaugh map with terms semi-automatically or manually. Last but not least it contains commands for drawing implicants on top of the map. Below is an example of a two variable karnaugh map.

Installation

# to get the karnaugh-map.sty file
pdflatex karnaugh-map.ins
# to get the documentation: karnaugh-map.pdf
pdflatex karnaugh-map.dtx

Dependencies

Development

The karnaugh-map package source is hosted at https://github.com/2pi/karnaugh-map as well as the bugtracker.

Tests

./test.sh

Testing consists of building the pdf output from the test files, and then comparing them to how they are expected to look like. Comparison is done with help from diff-pdf. All of this is done by running the test.sh file from the project root folder. If there is a difference, between the actual and expected output, a diff will be written to the folder test/result.

License

This work, karnaugh-map, is written from the ground up by Mattias Jacobsson. However the general implementation idea is based on the work published on TeX - LaTeX Stack Exchange by Ignasi found here and here which is licensed under CC BY-SA. karnaugh-map is therefore licensed under CC BY-SA. Contributors include Oscar Gustafsson and Paul Hervot.