This is a custom implementation of the TeX package askmaps from Jesse op den Brouw.
What is changes is twofold:
-
It corrects the Hamming distances of the 5 variables K-maps so that it's compliant with EPB/BEAMS courses.
When using more than four variables, Hamming distances can not be respected anymore and the table needs to be split into 4x4 sub-tables. Still, n-cubes can span over sub-tables, but their apsect will vary depending on the Hamming distances. Two cells belonging to different sub-tables will be adjacent (within the meaning of Hamming distance) when they are superimposed after the sub-tables have either been folded or stacked.