non si puo dire che non sono duro di comprendonio….
`…`
Questa è la mia proposta:
`\documentclass{book}
\usepackage{circuitikz}
\usepackage{booktabs} %gestione tabelle di qualitï¿?
\newenvironment{truthtable}[2][3]
{\begin{tabular}{*{#1}{c}}
\multicolumn{1}{l}{#2}\\}
{\end{tabular}}
\newcommand{\cport}[1]{%
\begin{circuitikz}
\draw (0,0) node [#1 port] {};
\end{circuitikz}}
\usepackage{gn-logic14}
\begin{document}
\begin{table}
\centering
\begin{tabular}{@{}cc@{\hspace{2cm}}cc@{}}
\begin{truthtable}{AND}
\toprule
$A$&$B$&$AB$\\
\midrule
0&0&0\\
1&0&0\\
0&1&0\\
1&1&1\\
\bottomrule
\end{truthtable}
& \cport{and} &
\begin{truthtable}{NAND}
\toprule
$A$&$B$&$A\mathbin{\overline{\wedge}}B$\\
\midrule
0&0&1\\
1&0&1\\
0&1&1\\
1&1&0\\
\bottomrule
\end{truthtable}
& \cport{nand} \\
\addlinespace[3ex]
\begin{truthtable}{OR}
\toprule
$A$&$B$&$A+B$\\
\midrule
0&0&0\\
1&0&1\\
0&1&1\\
1&1&1\\
\bottomrule
\end{truthtable}
& \cport{or} &
\begin{truthtable}{NOR}
\toprule
$A$&$B$&$A\mathbin{\overline{\vee}}B$\\
\midrule
0&0&1\\
1&0&0\\
0&1&0\\
1&1&0\\
\bottomrule
\end{truthtable}
& \cport{nor} \\
\addlinespace[3ex]
\begin{truthtable}{XOR}
\toprule
$A$&$B$&$A\XOR B$\\
\midrule
0&0&0\\
1&0&1\\
0&1&1\\
1&1&0\\
\bottomrule
\end{truthtable}
& \cport{xor} &
\begin{truthtable}{XNOR}
\toprule
$A$&$B$&$A\mathbin{\overline{\XOR}}B$\\
\midrule
0&0&1\\
1&0&0\\
0&1&0\\
1&1&1\\
\bottomrule
\end{truthtable}
& \cport{xnor} \\
\addlinespace[3ex]
\multicolumn{4}{c}{%
\begin{tabular}{@{}cc@{}}
\begin{truthtable}[2]{NOT}
\toprule
$A$&$\overline{A}$\\
\midrule
0&1\\
1&0\\
\bottomrule
\end{truthtable}
& \cport{not}
\end{tabular}}
\end{tabular}
\caption{Porte logiche}
\end{table}
\end{document} `
Ciao
Enrico