Montag, 27. März 2017

latex tabelle vertikale linie unterbrechen

\documentclass{article}
\begin{document}
   \begin{tabular}{*{5}{|l}|}
 latex & tabelle & vertikale & linie & unterbrechen\\
 latex & tabelle & vertikale & \multicolumn{1}{l}{linie} & 
unterbrechen\\
 latex & tabelle & vertikale & linie & unterbrechen\\
 latex & tabelle & vertikale & linie & unterbrechen\\ 
 \end{tabular}
\end{document}
vertikale linien mit vline setzen
\documentclass{article}
\begin{document}
   \begin{tabular}{*{5}{l}}
 latex & tabelle & vertikale \vline & linie & unterbrechen\\
 latex & tabelle & vertikale \vline & linie & unterbrechen\\
 latex & tabelle \vline & vertikale & linie & unterbrechen\\
 latex & tabelle \vline & vertikale \vline & linie & unterbrechen\\ 
 \end{tabular}
\end{document}

latex tabelle vertikale linie nicht durchgezogen

\documentclass{article}
\begin{document}
   \begin{tabular}{*{4}{|l}|}
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 latex & \multicolumn{2}{c}{ tabelle  vertikale }& linie 
nicht durchgezogen\\
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 \end{tabular}
\end{document}
latex tabelle vertikale linie doch durchgezogen
\documentclass{article}
\begin{document}
   \begin{tabular}{*{4}{|l}|}
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 latex & \multicolumn{2}{c|}{ tabelle  vertikale }& linie 
doch durchgezogen\\
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 latex & tabelle & vertikale & linie nicht durchgezogen\\
 \end{tabular}
\end{document}

latex tabelle vertikale linie

\documentclass{article}
\begin{document}
\begin{tabular}{|l|r|c|l|}
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 \end{tabular}
latex tabelle vertikale linie
\documentclass{article}
\begin{document}
 \begin{tabular}{*{4}{|l}|}
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 latex & tabelle & vertikale & linie \\
 \end{tabular}
\end{document}

multicolumn und multirow mit Zeilenumbruch

\documentclass{article}
\usepackage{multirow}
\begin{document}
  \begin{tabular}{|ccc|c|}
\hline
BBB & CCC & DDD & AAA\\
\hline
\multicolumn{3}{|c|}{\multirow{2}{*}{\shortstack{multicolumn\\
 multirow}}}& AAA \\ \cline{4-4}
& & & AAA \\
\hline
BBB & CCC & DDD & AAA\\
\hline
\end{tabular}
\end{document}

multicolumn und multirow

\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|ccc|c|}
\hline
BBB & CCC & DDD & AAA\\
\hline
\multicolumn{3}{|c|}{\multirow{2}{*}{multicolumn \& multirow}}& 
AAA \\ \cline{4-4}
& & & AAA \\
\hline
BBB & CCC & DDD & AAA\\
\hline
\end{tabular}
\end{document}

latex multicolumn zeilenumbruch

Zeilenumbruch multicolumn mit parbox
\documentclass{article}
\begin{document}
 \begin{tabular}{llll}
  AAA & \multicolumn{3}{c}{\parbox{4cm}{ Text. Even more text. 
To long for one line.}}\\
  AAA & BBB & CCC & DDD\\
  AAA & BBB & CCC & DDD\\
 \end{tabular}
\end{document}
Zeilenumbruch multicolumn mit parbox zentriert
\documentclass{article}
\begin{document}
 \begin{tabular}{llll}
  AAA & \multicolumn{3}{c}{\parbox{4cm}{\centering Text. Even 
more text. To long for one line.}}\\
  AAA & BBB & CCC & DDD\\
  AAA & BBB & CCC & DDD\\
 \end{tabular}
\end{document}
Zeilenumbruch multicolumn mit parbox linksbündig
\documentclass{article}
\begin{document}
 \begin{tabular}{llll}
  AAA & \multicolumn{3}{c}{\parbox{4cm}{\raggedright Text. Even 
more text. To long for one line.}}\\
  AAA & BBB & CCC & DDD\\
  AAA & BBB & CCC & DDD\\
 \end{tabular}
\end{document}
Zeilenumbruch multicolumn mit parbox rechtssbündig
\documentclass{article}
\begin{document}
 \begin{tabular}{llll}
  AAA & \multicolumn{3}{c}{\parbox{4cm}{\raggedleft Text. Even 
more text. To long for one line.}}\\
  AAA & BBB & CCC & DDD\\
  AAA & BBB & CCC & DDD\\
 \end{tabular}
\end{document}

latex tabelle multicolumn Teil 2

multicolumn und multirow
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multirow{2}{*}{Minterme}& \multicolumn{10}{c|}{ON-Menge}\\
\cline{2-11}
 & 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}
multicolumn, multirow und booktabs
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{*{11}{c}}
\toprule
\multirow{2}{*}{Minterme}& \multicolumn{10}{c}{ON-Menge}\\
\cmidrule(lr){2-11}
 & 00000 & 01000 & 01010 & 01100 & 10000 & 10001 & 10010 & 
10100 & 11010 & 11100 \\
\midrule
$\bar{x}_{2}\bar{x}_{3}\bar{x}_{4} \bar{x}_{5}$ & 1 & 0 & 0 & 
0 & 1 & 0 & 0 & 0 & 0 & 0 \\
$x_{2} \bar{x}_{3} x_{4} \bar{x}_{5} $ & 0 & 0 & 1 & 0 & 0 & 
0 & 0 & 0 & 1 & 0 \\
$x_{2}x_{3} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 0 & 1 & 0 & 
0 & 0 & 0 & 0 & 1 \\
$\bar{x_{1}} \bar{x}_{3} \bar{x}_{4} \bar{x}_{5} $ & 1 & 1 & 
0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
$\bar{x_{1}} x_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 1 & 0 & 1 & 
0 & 0 &0 & 0& 0 & 0 \\
$\bar{x_{1}} x_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 1 & 1 & 0 & 
 0 & 0 &0 & 0& 0 & 0 \\
$x_{1} \bar{x}_{3} x_{4} \bar{x}_{5} $ &  0 & 0 &0 & 0& 0 & 
0 & 1 & 0 & 1 & 0  \\
$x_{1} x_{3} \bar{x}_{4} \bar{x}_{5}$ &  0 & 0 &0 & 0& 0 & 
0 & 0 & 1 & 0 & 1 \\
$x_{1} \bar{x}_{2} \bar{x}_{4} \bar{x}_{5} $ & 0 & 0 & 0 & 
0 & 1 & 0 & 0 & 1 & 0 & 0 \\
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{5}$ & 0 & 0 & 0 & 
0 & 1 & 0 & 1 & 0 & 0 & 0 \\
$x_{1} \bar{x}_{2} \bar{x}_{3} \bar{x}_{4} $ & 0 & 0 & 0 & 
0 & 1 & 1 & 0 & 0 & 0 & 0 \\
\bottomrule
\end{tabular}
\end{document}