summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/kvmap/README.md
blob: 1a241b5eef3f9c8ccf22bd53a6efa2abc2b05c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# The `kvmap` package

This LaTeX package allows the creation of (even large) Karnaugh maps. It
provides a tabular-like input syntax and support for drawing bundles
(implicants) around adjacent values.

Code example:

    \begin{kvmap}
      \begin{kvmatrix}{a,b,c,d}
        0 & 1 & 1 & 0\\
        1 & 0 & 0 & 1\\
        0 & 0 & 0 & 1\\
        0 & 1 & 1 & 1\\
      \end{kvmatrix}
      \bundle{3}{3}{2}{3}
      \bundle[color=blue]{3}{2}{3}{1}
      \bundle[invert=true,reducespace=2pt,overlapmargins=6pt]{1}{0}{2}{3}
      \bundle[invert=true,reducespace=2pt]{0}{1}{3}{1}
    \end{kvmap}