| 1 | # NOTE: THIS FORK IS STILL IN DEVELOPEMENT. |
| 2 | # Cartonaugh |
| 3 | This package is a fork of the [karnaugh-map](https://github.com/2pi/karnaugh-map) package. This fork |
| 4 | is meant to replace some of the functions in this package with Lua internally, and add some |
| 5 | features unto the original package (for example I'm thinking an auto-boolean equation parser). |
| 6 | |
| 7 | ## But Why LuaLaTeX? |
| 8 | Personally, it's much easier to write expansion macros in Lua rather than nativally in LaTeX. It's just |
| 9 | a matter of personal preference. It make macros easier to explain, document, and expand upon in the future. |
| 10 | It also allows for some advanced capability, for example the ability to feed in a boolean equation and have it |
| 11 | automatically highlight which cells need to be highlighed (upcomming/todo). |
| 12 | |
| 13 | ## Installation |
| 14 | # to get the cartonaugh.sty and cartonaugh.lua file |
| 15 | lualatex cartonaugh.ins |
| 16 | # to get the documentation: cartonaugh.pdf |
| 17 | lualatex cartonaugh.dtx |
| 18 | |
| 19 | ## Dependencies |
| 20 | * tikz |
| 21 | * xparse |
| 22 | * xstring |
| 23 | |
| 24 | ## Development |
| 25 | This fork is still in development. |
| 26 | |
| 27 | ## Tests |
| 28 | ./test.sh |
| 29 | Testing consists of building the pdf output from the test files, and then comparing them to how they are expected to look like. |
| 30 | Comparison is done with help from [diff-pdf](https://github.com/vslavik/diff-pdf). |
| 31 | All of this is done by running the `test.sh` file from the project root folder. |
| 32 | If there is a difference, between the actual and expected output, a diff will be written to the folder `test/result`. |
| 33 | |
| 34 | ## License |
| 35 | As karnaugh-map is licensed under [CC BY-SA](https://creativecommons.org/licenses/by-sa/3.0/), and thus so is this fork. |
| 36 | |
| 37 | ## Credit |
| 38 | Credit goes to [2pi](https://github.com/2pi) and [Oscar Gustafsson](https://github.com/oscargus) for writting the orignal package which |
| 39 | this is based upon/forked from. |