Montag, 27. März 2017

latex tabelle multicolumn teil1

ohne multicolumn
\documentclass{article}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|}
\hline
 & 00000 & 01000 & 01010 & 01100 & 10000 & 10001 & 10010 
& 10100 & 11010 & 11100 \\
\hline
$\bar{x}_{2}\bar{x}_{3}\bar{x}_{4} \bar{x}_{5}$ & 1 & 0 & 0 
& 0 & 1 & 0 & 0 & 0 & 0 & 0 \\
\hline 
$x_{2} \bar{x}_{3} x_{4} \bar{x}_{5} $ & 0 & 0 & 1 & 0 & 0 
& 0 & 0 & 0 & 1 & 0 \\
\hline
$x_{2}x_{3} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 0 & 1 & 0 
& 0 & 0 & 0 & 0 & 1 \\
\hline
$\bar{x_{1}} \bar{x}_{3} \bar{x}_{4} \bar{x}_{5} $ & 1 & 1 
& 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
\hline
$\bar{x_{1}} x_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 1 & 0 
& 1 & 0 & 0 &0 & 0& 0 & 0 \\
\hline
$\bar{x_{1}} x_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 1 & 1 
& 0 &  0 & 0 &0 & 0& 0 & 0 \\
\hline
$x_{1} \bar{x}_{3} x_{4} \bar{x}_{5} $ &  0 & 0 &0 & 0
& 0 & 0 & 1 & 0 & 1 & 0  \\
\hline
$x_{1} x_{3} \bar{x}_{4} \bar{x}_{5}$ &  0 & 0 &0 & 0
& 0 & 0 & 0 & 1 & 0 & 1 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 0 
& 0 & 1 & 0 & 0 & 1 & 0 & 0 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 0 & 0 
& 0 & 1 & 0 & 1 & 0 & 0 & 0 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{4} $ & 0 & 0 & 0 
& 0 & 1 & 1 & 0 & 0 & 0 & 0 \\
\hline
\end{tabular}
\end{document}
mit multicolumn
\documentclass{article}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|}
\hline
Minterme& \multicolumn{10}{c|}{ON-Menge}\\
\hline
 & 00000 & 01000 & 01010 & 01100 & 10000 & 10001 & 10010 
& 10100 & 11010 & 11100 \\
\hline
$\bar{x}_{2}\bar{x}_{3}\bar{x}_{4} \bar{x}_{5}$ & 1 & 0 & 
0 & 0 & 1 & 0 & 0 & 0 & 0 & 0 \\
\hline 
$x_{2} \bar{x}_{3} x_{4} \bar{x}_{5} $ & 0 & 0 & 1 & 0 & 
0 & 0 & 0 & 0 & 1 & 0 \\
\hline
$x_{2}x_{3} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 0 & 1 & 
0 & 0 & 0 & 0 & 0 & 1 \\
\hline
$\bar{x_{1}} \bar{x}_{3} \bar{x}_{4} \bar{x}_{5} $ & 1 & 
1 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
\hline
$\bar{x_{1}} x_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 1 & 0 & 
1 & 0 & 0 &0 & 0& 0 & 0 \\
\hline
$\bar{x_{1}} x_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 1 & 1 & 
0 &  0 & 0 &0 & 0& 0 & 0 \\
\hline
$x_{1} \bar{x}_{3} x_{4} \bar{x}_{5} $ &  0 & 0 &0 & 0& 
0 & 0 & 1 & 0 & 1 & 0  \\
\hline
$x_{1} x_{3} \bar{x}_{4} \bar{x}_{5}$ &  0 & 0 &0 & 0& 
0 & 0 & 0 & 1 & 0 & 1 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 
0 & 0 & 1 & 0 & 0 & 1 & 0 & 0 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 0 & 
0 & 0 & 1 & 0 & 1 & 0 & 0 & 0 \\
\hline
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{4} $ & 0 & 0 & 
0 & 0 & 1 & 1 & 0 & 0 & 0 & 0 \\
\hline
\end{tabular}
\end{document}

Keine Kommentare:

Kommentar veröffentlichen