I need to draw Karnaugh Map for a book. package mentioned in this answer Drawing Karnaugh's maps in LaTeX is excellent. I have two questions
- How to turn colouring On.
- Can we shift position of x,y,z as shown in the alternate answer
.
\documentclass{memoir}
\usepackage{tikz,xcolor}
\usepackage{karnaugh-map}
\begin{document}
\begin{karnaugh-map}*[4][2][1][$yz$][$x$]
\maxterms{0,2,3}
\minterms{1,4,5,6,7}
\autoterms[X]
\implicant{4}{6}
\implicant{1}{5}
\end{karnaugh-map}
\end{document}

karnaugh-map. – Ignasi Dec 10 '16 at 17:57