📖 See the k-mapper
Manual here! The Manual features much more documentation, and is typeset using Typst.
This is a package for adding Karnaugh maps into your Typst projects.
See the changelog for the package here.
Features
- 2-variable (2 by 2) Karnaugh maps
- 3-variable (2 by 4) Karnaugh maps
- 4-variable (4 by 4) Karnaugh maps
Getting Started
Simply import k-mapper
using the Typst package manager to begin using k-mapper
within your Typst documents.
#import "@preview/k-mapper:1.1.0": *
Example
#karnaugh(
16,
x-label: $C D$,
y-label: $A B$,
manual-terms: (
0, 1, 2, 3, 4, 5, 6, 7, 8,
9, 10, 11, 12, 13, 14, 15
),
implicants: ((5, 7), (5, 13), (15, 15)),
vertical-implicants: ((1, 11), ),
horizontal-implicants: ((4, 14), ),
corner-implicants: true,
)
For more detailed documentation and examples, including function parameters, see the Manual PDF and Typst file in the Github repo.