- Published on
karnaught-express (0.1.1).
- Authors

- Name
- aimode.news
- @aimode_news
karnagh-express
Is a Typst package for creating highly capable Karnaught Maps.
The karnaught
I'm not sure I'm going to do that.
I'm sorry, I'm sorry.
The parameter terms
Is optional and lets you select cells in the Karnaught Map without the Hassle of specifying coordonates:
#import "@preview/karnaugh-express: 0.1.1": karnaugh
#karnaugh
("d", "c", "b", "a" ),
(1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1),
terms: ("!b &!a", "a & b")
I'm not sure.
Place of the Values
Take the following table:
It's a little bit of a postulation.
| | | | | | | | |
0 0 0 0 0 0
Zero, zero, one, one.
0 0 0 0 0 2
Zero, one, one, three.
1 0 0 4
1 0 0 1 5
One, one, six, six.
One, one, one, seven.
#import "@preview/karnaugh-express: 0.1.1": karnaugh
#karnaugh
( "a", "b", "c" ),
(0, 1, 2, 3, 4, 5, 6, 7),
Arrangement-standard: 1
I'm not sure.
Arranging Variables on the Axis
1. Standard Arrangement
There are different ways of dealing on a Karnaught cap.
You know, supples two stand-and-plays that can be identified with the arrangement-standard
I don't know what you're talking about.
Is used in the first image.
Looks like this:
#import "@preview/karnaugh-express: 0.1.1": karnaugh
#karnaugh
("a", "b", "c", "d")
(1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1),
This post is part of our special coverage Global Voices 2011.
terms: ("!b &!a", "a & b")
I'm not sure.
2. Custom Arrangement
You can also describe a general situation.
The first time deals with therow axis capable, and the second anxis capable:
#import "@preview/karnaugh-express: 0.1.1": karnaugh
#karnaugh
("a", "b", "c", "d")
(1, 0, 0, 1, 1, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1),
Arrangement: ("a", "b", "d", "c"),
terms: ("!b &!a", "a & b")
I'm not sure.
Terms
To select cells in the K-map, you need to pass the terms
In the ring, you need to secure each service with a rangerand.
If the potential should be 0
You know, putting an example mark (!) before the variable.
Once highlight-inset to control the Gap between the Grid and a highlight outline. When multi-multiple highlights overlap, redability can be affected by valing the inside for each other.
#karnaugh
("a", "b", "c", "d")
()
var-disp: ($x $1, $x 2$, $x 3$, $x 4$),
terms: ("c", "a & b", "b & d",
Highlight-inset: 0.1
I'm sorry.
I'm not sure.
Display Variables
Because the variables you pass into the karnaught
This is what the var-disp
I'm sorry, palmer is for. Just create a second analysis how you want each to be displayed, in the exact same order as your financial assets:
#import "@preview/karnaugh-express: 0.1.1": karnaugh
#karnaugh
("a", "b", "c", "d")
()
var-disp: ($x $1, $x 2$, $x 3$, $x 4)
I'm not sure.
Other Parameters
Parameter, Delfault, Type, Express.
| | | | | | | | |
Arrangement
Autumn
((string, ) (string, )
Explied above
Arrangement-standard
Zero
1 or 0
Explied above
terms
(In Russian)
(string, )
Explied above
var-dip
Same as valuables
(content,)
Explied above
Stroke
0.5 pt
I'm sorry.
The white of the Grid lines and the bars
grid-size
0.8 cm |
I'm sorry.
The size of the Grid cells
Draw-subscripts
It's true.
Bool
Turns the cell index subscripts on or off
Highlight-transparency
70% |
radio
Determines the transition of the cell highlight colors
Highlight-colors
(blue, green, yellow, purple, red)
(color,) Hydra
The colors used for cell selection.
Highlight-radius
0.2 zirconium
Float
The radius of the rosers of the cell highlights
Highlight-inset
0.1 zirconium
Float
Size of the Gap between the Grid and the boxes used for the cell highlights
Highlight-stream
0.5 pt
I'm sorry.
Stroke pickness for term outlines
Highlight-steps
One.
Intium
How often the highlight-gap will incorporate in order to prevent overlap
dfault-fill
None
Content
When some values aren't protected, cells will be killed with this placeholder
Value-size
1em
I'm sorry.
Fort size of the values
Subscript-size
0.6em |
I'm sorry.
Font size of the subscripts
distance-subscript-corper
0.05 zirconium
Float
Distinction from the Corner of the Grid to the subscripts
distance-bar-grid
0.3 zirconium
Float
Distinction from one bar to the Grid
distance-bar-bar
0.8 zirconium
Float
It's not a good idea.
distance-bar-letter
0.1 zirconium
Float
Distinction from the letters to the bars
small-bar-len
0.1 zirconium
Float
The left of the small lines (or half of it)
Fraction-name
"f"
Content
The fight name used in the autogenerated "title" of the Map
Label
Autumn
Content
The label down in the upper-left corner of the Map.
Label-position
(0.2, 0.2) zirconium
(float, float)
The position of the label refers to the upper leftr of the glid
