von Latex_Neuling » Mo 25. Jul 2011, 11:55
Hallo Latex User,
ich habe folgendes Problem mit einer Tabelle:
Ich stelle gerade eine Gewichtungsmatrix her, in der man Spalte und Zeile vergleicht und nach Wichtigkeit ein Plus oder ein Minus einsetzt. Jetzt soll in der obersten Zelle ein Schrägstrich eingefügt werden, das funktioniert auch, nur nicht über die ganze Zelle.
% Das ist mein LaTeX-Dokument
\usepackage{slashbox}
\begin{table}[h]
\centering
\begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{13}{|c|}{Gewichtungsmatrix}\\
\hline
\backslashbox{Kriterium 1}{Kriterium 2} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abcdefghijkl} & & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{Anzahl der $+$} & \rotatebox{90}{Gewichtungsfaktor}\\
\hline
abc & \cellcolor{gray} & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & 9 & 0,200\\
\hline
abc & $-$ & \cellcolor{gray} & $-$ & $-$ & $-$ & $+$ & $-$ & $+$ & $+$ & $-$ & 3 & 0,067\\
\hline
abc & $-$ & $+$ & \cellcolor{gray} & $+$ & $-$ & $+$ & $+$ & $+$ & $+$ & $-$ & 6 & 0,133\\
\hline
abcdefghijkl & $-$ & $+$ & $-$ & \cellcolor{gray} & $-$ & $+$ & $-$ & $+$ & $+$ & $-$ & 4 & 0,089\\
\hline
abc & $-$ & $+$ & $+$ & $+$ & \cellcolor{gray} & $+$ & $+$ & $+$ & $+$ & $-$ & 7 & 0,156\\
\hline
abc & $-$ & $-$ & $-$ & $-$ & $-$ & \cellcolor{gray} & $-$ & $+$ & $+$ & $-$ & 2 & 0,044\\
\hline
abc & $-$ & $+$ & $-$ & $+$ & $-$ & $+$ & \cellcolor{gray} & $+$ & $+$ & $-$ & 5 & 0,111\\
\hline
& $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & \cellcolor{gray} & $-$ & $-$ & 0 & 0,000\\
\hline
abcdefghijkl & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $+$ & \cellcolor{gray} & $-$ & 1 & 0,022\\
\hline
abc & $-$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $-$ & \cellcolor{gray} & 8 & 0,178\\
\hline
Datum & \multicolumn{6}{c|}{Name} & \multicolumn{4}{c|}{Summe} & 45 & 1.000\\
\hline
\end{tabular}
\caption{Gewichtungsmatrix}
\end{table}
% Ende des Dokumentes
Wäre super wenn mir jemand helfen kann. Danke
Hallo Latex User,
ich habe folgendes Problem mit einer Tabelle:
Ich stelle gerade eine Gewichtungsmatrix her, in der man Spalte und Zeile vergleicht und nach Wichtigkeit ein Plus oder ein Minus einsetzt. Jetzt soll in der obersten Zelle ein Schrägstrich eingefügt werden, das funktioniert auch, nur nicht über die ganze Zelle.
[code]% Das ist mein LaTeX-Dokument
\usepackage{slashbox}
\begin{table}[h]
\centering
\begin{tabular}{|l|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
\multicolumn{13}{|c|}{Gewichtungsmatrix}\\
\hline
\backslashbox{Kriterium 1}{Kriterium 2} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{abcdefghijkl} & & \rotatebox{90}{abc} & \rotatebox{90}{abc} & \rotatebox{90}{Anzahl der $+$} & \rotatebox{90}{Gewichtungsfaktor}\\
\hline
abc & \cellcolor{gray} & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & 9 & 0,200\\
\hline
abc & $-$ & \cellcolor{gray} & $-$ & $-$ & $-$ & $+$ & $-$ & $+$ & $+$ & $-$ & 3 & 0,067\\
\hline
abc & $-$ & $+$ & \cellcolor{gray} & $+$ & $-$ & $+$ & $+$ & $+$ & $+$ & $-$ & 6 & 0,133\\
\hline
abcdefghijkl & $-$ & $+$ & $-$ & \cellcolor{gray} & $-$ & $+$ & $-$ & $+$ & $+$ & $-$ & 4 & 0,089\\
\hline
abc & $-$ & $+$ & $+$ & $+$ & \cellcolor{gray} & $+$ & $+$ & $+$ & $+$ & $-$ & 7 & 0,156\\
\hline
abc & $-$ & $-$ & $-$ & $-$ & $-$ & \cellcolor{gray} & $-$ & $+$ & $+$ & $-$ & 2 & 0,044\\
\hline
abc & $-$ & $+$ & $-$ & $+$ & $-$ & $+$ & \cellcolor{gray} & $+$ & $+$ & $-$ & 5 & 0,111\\
\hline
& $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & \cellcolor{gray} & $-$ & $-$ & 0 & 0,000\\
\hline
abcdefghijkl & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $-$ & $+$ & \cellcolor{gray} & $-$ & 1 & 0,022\\
\hline
abc & $-$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $+$ & $-$ & \cellcolor{gray} & 8 & 0,178\\
\hline
Datum & \multicolumn{6}{c|}{Name} & \multicolumn{4}{c|}{Summe} & 45 & 1.000\\
\hline
\end{tabular}
\caption{Gewichtungsmatrix}
\end{table}
% Ende des Dokumentes [/code]
Wäre super wenn mir jemand helfen kann. Danke