CTAN Comprehensive TeX Archive Network

Directory graphics/pgf/contrib/cartonaugh

README.md

NOTE: THIS FORK IS STILL IN DEVELOPEMENT.

Cartonaugh

This package is a fork of the karnaugh-map package. This fork is meant to replace some of the functions in this package with Lua internally, and add some features unto the original package (for example I'm thinking an auto-boolean equation parser).

But Why Lua?

Personally, it's much easier to write expansion macros in Lua rather than nativally in . It's just a matter of personal preference. It make macros easier to explain, document, and expand upon in the future. It also allows for some advanced capability, for example the ability to feed in a boolean equation and have it automatically highlight which cells need to be highlighed (upcomming/todo).

Installation

# to get the cartonaugh.sty and cartonaugh.lua file
lualatex cartonaugh.ins
# to get the documentation: cartonaugh.pdf
lualatex cartonaugh.dtx

Dependencies

  • tikz
  • xparse
  • xstring

Development

This fork is still in development.

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

As karnaugh-map is licensed under CC BY-SA, and thus so is this fork.

Credit

Credit goes to 2pi and Oscar Gustafsson for writting the orignal package which this is based upon/forked from.

Download the contents of this package in one zip archive (174.2k).

cartonaugh – A Lua package for drawing karnaugh maps with up to 6 variables

This package, a fork of 2pi’s karnaugh-map 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.

The name “cartonaugh” is a portmanteau of “cartographer” and “karnaugh”.

The package needs Lua and depends on TikZ, xparse, and xstring.

Packagecartonaugh
Bug trackerhttps://github.com/Electro707/Cartonaugh/issues
Repositoryhttps://github.com/Electro707/Cartonaugh
Version1.0 2021-07-15
LicensesCC BY-SA 3.0
Copyright2015–2017 Mattias Jacobsson et al.
2021 Jamal Bouajjaj
MaintainerJamal Bouajjaj
Contained inTeX Live as cartonaugh
MiKTeX as cartonaugh
TopicsMaths
PGF TikZ
Engineering
Lua
...
Guest Book Sitemap Contact Contact Author