k

k-mapper

@preview

A package to add Karnaugh maps into Typst projects.

v1.4.0
MIT

k-mapper for Typst (1.4.0)

📖 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
  • 3-variable (4 by 2) 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.4.0": *

Example

  #karnaugh(
    "4x4",
    labels: ($A$, $B$, $C$, $D$),
    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,
  )

Code result

For more detailed documentation and examples, including function parameters, see the Manual PDF and Typst file in the Github repo.

Version History

1.4.0
5eb326eda019...
1.3.0
c66d29ffe823...
1.2.0
ad9dfedbc3b1...
1.1.0
ced2ef4b7492...
1.0.0
582d73a55ec9...