Debian Codegraph @

texmf-dist/doc/latex/cartonaugh/test/cartonaugh-options.tex

raw
1 % Test to test out the different package options
2 \documentclass[]{standalone}
3 \usepackage{cartonaugh}
4 \begin{document}
5 % Normal stuff
6 \begin{cartonaugh}[4][4][4]
7 \autoterms[-]
8 \end{cartonaugh}
9 % Test out non-seperated kmap
10 \begin{cartonaugh}[4][4][4][$BA$][$DC$][$FE$][1]
11 \autoterms[-]
12 \end{cartonaugh}
13 % Test changing color
14 \begin{cartonaugh}[4][4][4]
15 \implicant{0}{2}[0]
16 \implicant{4}{6}[0]
17 \changecolor{blue}
18 \implicant{8}{10}[0]
19 \implicant{12}{14}[0]
20 \end{cartonaugh}
21 % Test changing the implicant corner spread
22 \begin{cartonaugh}[4][4][4]
23 \implicantcorner[0]
24 \implicantspread{0.2}{0.7}
25 \implicantcorner[1]
26 \resetimplicantspread
27 \implicantcorner[2]
28 \end{cartonaugh}
29 \end{document}