Karnaugh map package: \implicantedge

diagramskarnaugh

I am trying to highlight the eight vertical karnaugh map cells with one implicant as follows:
enter image description here

However, when I try to do it as stated in the documentation, it gives me this result:
enter image description here

Here is my Latex:

\begin{karnaugh-map}[4][4][1][$b_4$][$b_3$][$b_2$][$b_1$]
        \minterms{0,2,4,6,8}
        \terms{10,12,13,14,15}{$x$}
        \autoterms[0]
        \implicantedge{0}{4}{12}{8}{2}{6}{14}{10}
 \end{karnaugh-map}

Any idea how to approach this?

Best Answer

The coordinates for this highlight are 0000 (0) and 1000 (8) on the left and 0010 (2) and 1010 (10) on the right. So:

\documentclass{article}
\usepackage{karnaugh-map}
\begin{document}
\begin{karnaugh-map}[4][4][1][$b_4$][$b_3$][$b_2$][$b_1$]
        \minterms{0,2,4,6,8}
        \terms{10,12,13,14,15}{$x$}
        \autoterms[0]
        \implicantedge{0}{8}{2}{10}
\end{karnaugh-map}
\end{document}

enter image description here

Related Question