1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
\documentclass{standalone}
\usepackage{cartonaugh}
\begin{document}
% fill all fields (autoterms)
\begin{cartonaugh}[2][2][1]
\autoterms[-]
\end{cartonaugh}
\begin{cartonaugh}[2][4][1]
\autoterms[-]
\end{cartonaugh}
\begin{cartonaugh}[4][2][1]
\autoterms[-]
\end{cartonaugh}
\begin{cartonaugh}[4][4][1]
\autoterms[-]
\end{cartonaugh}
\begin{cartonaugh}[4][4][2]
\autoterms[-]
\end{cartonaugh}
\begin{cartonaugh}[4][4][4]
\autoterms[-]
\end{cartonaugh}
% fill remaining after '\indeterminants' '\manualterms' '\maxterms' and '\minterms'
\begin{cartonaugh}[2][2][1]
\manualterms{m}
\indeterminants{1}
\maxterms{2}
\minterms{3}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[2][2][1]
\manualterms{m}
\terms{1}{T}
\indeterminants{1}
\maxterms{2}
\minterms{3}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[2][4][1]
\manualterms{m}
\indeterminants{1}
\maxterms{2}
\minterms{3}
\terms{4}{T}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[4][2][1]
\manualterms{m}
\indeterminants{1}
\maxterms{2}
\minterms{3}
\terms{4}{T}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[4][4][1]
\manualterms{m,m}
\indeterminants{2,3}
\maxterms{4,5}
\minterms{6,7}
\terms{8,9}{T}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[4][4][2]
\manualterms{m,m,m,m}
\indeterminants{4,5,6,7}
\maxterms{8,9,10,11}
\minterms{12,13,14,15}
\terms{16,17,18,19}{T}
\autoterms[a]
\end{cartonaugh}
\begin{cartonaugh}[4][4][4]
\manualterms{m,m,m,m}
\indeterminants{4,5,6,7}
\maxterms{8,9,10,11}
\minterms{12,13,14,15}
\terms{16,17,18,19}{T}
\autoterms[a]
\end{cartonaugh}
\end{document}
|