von Xenara » Do 7. Okt 2010, 11:04
Ich hatte deine Anfrage schon länger gesehen und sie mir ein paar Gedanken gemacht, aber meine ganz persönliche Meinung ist: Du verlangst zu viel.
1. Schreibst du, du hast keine Zeit. Das wird nicht nur dir so gehen.
2. Die Tabelle, die du willst, ist extrem komplex: über mehrere Seiten, mit gedrehter Kopfzeile, farbig...
3. Der Code, den du gepostet hast, ist zwar lauffähig, aber es stehen viel zu viele unnütze Sachen drin. Insgesamt hat mich das sehr abgeschreckt.
Ein paar konstruktive Hinweise in der Reihenfolge deiner Fragen:
- Wenn du lange Tabellen meinst, meinst du über mehrere Seiten? Das klappt mit longtable oder ltablex, was ich persönlich einfacher finde. Dazu muss nur die table-Umgebung weg, die ist immer nur für eine Seite. Da du die Tabelle aber sowieso mit H an diese Stelle zwingst, ist table sowieso obsolet. Für caption ohne table einfach captionof verwenden.
Für einheitliche Spalten entweder p{...} oder X (aus tabularx) nehmen, dann passt das auch in deinen anderen Tabellen.
- Gleiche Lösung wie oben, am besten X-Spalten nehmen.
- Was hindert dich daran, sie einfach in eine multicolumn-Spalte zu schreiben oder direkt unter die Tabelle?
- Ist im Code unten gelöst.
Das ist mal der von mir gebastelte Code, deine meisten Wünsche sind eingebaut:
% Das ist mein LaTeX-Dokument.
\documentclass[
twoside=false, % Buchlayout deaktiviert
12pt, % globale Schriftgröße
a4paper, % DIN-Papiergröße
parskip=half, % half Statt Erstzeileneinzug, Abstand einer halben Zeile.
% Letzte Zeile hat Freiraum von mind. 1 em
% half+ 1/3 der letzten Zeile
% half* 1/4 der letzten Zeile, ...- keiner
bibliography=totoc, % totoc Verweis aufs Literaturverzeichnis ohne Nummer im Inhaltsverz.
numbers=noendperiod,% noendperiod Kein Punkt nach Überschriftnummerierung
headings=small, % \setlength{\parindent}{0cm} % Kein Erstzeileneinzug
% smallheadings, normalheadings und bigheadings
% beeinflussen global die Fontgröße der Uberschriften
draft=false % draft=true Entwurfsmodus
]{scrbook} % siehe scrguide.pdf
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm,includehead,includefoot]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage[ngerman]{babel}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{scrpage2}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{amsmath,amssymb}
\usepackage{comment}
\usepackage{float}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{footnote}
\usepackage{enumitem}
\usepackage{rotating}
\usepackage[german]{varioref}
\usepackage{array}
\usepackage{ragged2e}
\usepackage{ltablex}
% --- Definition der Tabellenstile ---
%--Definition der Farben ----------
\colorlet{tablesubheadcolor}{gray!60}
\colorlet{tableheadcolor}{gray!25}
\colorlet{tableblackheadcolor}{-red!75!green!50}%{black!50}
\colorlet{tablerowcolor}{gray!15.0}
\newcommand\tablealtcolored{%
\rowcolors{1}{tablerowcolor}{white!100}%
}
\newcommand\tableheadcolor{
\rowcolor{tableblackheadcolor}
}
% -- Schriftgrößen
\newcommand{\tablefontsize}{ \scriptsize}
\newcommand{\tableheadfontsize}{\scriptsize}
% --- Allgemein ---
% Layout der Tabelle: Ausrichtung, Schrift, Zeilenabstand
\newcommand\tablestylecommon{%
%\renewcommand{\arraystretch}{1.4} % Groessere Abstaende zwischen Zeilen
\normalfont\normalsize %
\sffamily\tablefontsize % Serifenlose und kleine Schrift
\centering% % Tabelle zentrieren
}
\newcommand{\tablestyle}{
\tablestylecommon
%\tablealtcolored
}
% --- Kopf --------
% Stil für den Tabellenkopf
\newcommand\tablehead{%
\tableheadfontsize
\sffamily\bfseries%
\slshape
\color{white}
}
\newcommand\tablebegin{%
\hline
}
% --- Zwischenkopf --
\newcommand\tablemidhead{%
\bfseries
}
% --- Inhalt --------
% um Tabellenspalten mit Flattersatz zu setzen, muss \\ vor
% (z.B.) \raggedright geschuetzt werden:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
% Linksbuendig:
\newcolumntype{v}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}p{#1}}
\newcommand\tablebody{%
\tablefontsize
\sffamily
\upshape%
}
% Fuss
\newcommand\tableend{%
\hline
}
% gedrehter Tabellenkopf
\newcolumntype{R}[1]{%
>{\begin{turn}{90}\begin{minipage}{#1}%
\raggedright\hspace{0pt}}l%
<{\end{minipage}\end{turn}}%
}
\newcommand{\myrotate}[1]{\rotatebox{90}{\parbox{16em}{#1}\hspace*{1ex}}}
\begin{document}
%- Tabelle --------------------------------------
%
%\begin{table}[H]
% Stil der Tabelle
\tablestyle
%
\tablealtcolored % Alternierende Farbe der Tabellenzeilen
%
\captionof{table}{Add caption}
\begin{tabularx}{\textwidth}{X*{8}{p{.8cm}}{c}} %
\tablebegin % Linie oberhalb des Kopfes
\tableheadcolor % Farbe für den Tabellenkopf
% Tabellenkopf
\tablehead &
\myrotate{\tablehead an dieser Stelle} &
\myrotate{\tablehead stehen verschiedene} &
\myrotate{\tablehead Spaltenüberschriften} &
\myrotate{\tablehead es gibt kurze} &
\myrotate{\tablehead und längere} &
\myrotate{\tablehead bei den längeren soll durch "16em"\ umgebrochen werden} &
\myrotate{\tablehead was auch passiert} &
\myrotate{\tablehead die Spaltenbreite} &
\myrotate{\tablehead könnte schmaler sein}
\tabularnewline\hline
%
% Zwischenkopf (2 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & $\circ$ & -- & -- \tabularnewline
% Linie am Ende der Tabelle
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \\
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\tableend
\end{tabularx}
%\end{table}
\end{document}
% Ende des Dokumentes
Ich hatte deine Anfrage schon länger gesehen und sie mir ein paar Gedanken gemacht, aber meine ganz persönliche Meinung ist: Du verlangst zu viel.
1. Schreibst du, du hast keine Zeit. Das wird nicht nur dir so gehen.
2. Die Tabelle, die du willst, ist extrem komplex: über mehrere Seiten, mit gedrehter Kopfzeile, farbig...
3. Der Code, den du gepostet hast, ist zwar lauffähig, aber es stehen viel zu viele unnütze Sachen drin. Insgesamt hat mich das sehr abgeschreckt.
Ein paar konstruktive Hinweise in der Reihenfolge deiner Fragen:
- Wenn du lange Tabellen meinst, meinst du über mehrere Seiten? Das klappt mit longtable oder ltablex, was ich persönlich einfacher finde. Dazu muss nur die table-Umgebung weg, die ist immer nur für eine Seite. Da du die Tabelle aber sowieso mit H an diese Stelle zwingst, ist table sowieso obsolet. Für caption ohne table einfach captionof verwenden.
Für einheitliche Spalten entweder p{...} oder X (aus tabularx) nehmen, dann passt das auch in deinen anderen Tabellen.
- Gleiche Lösung wie oben, am besten X-Spalten nehmen.
- Was hindert dich daran, sie einfach in eine multicolumn-Spalte zu schreiben oder direkt unter die Tabelle?
- Ist im Code unten gelöst.
Das ist mal der von mir gebastelte Code, deine meisten Wünsche sind eingebaut:
[code]% Das ist mein LaTeX-Dokument.
\documentclass[
twoside=false, % Buchlayout deaktiviert
12pt, % globale Schriftgröße
a4paper, % DIN-Papiergröße
parskip=half, % half Statt Erstzeileneinzug, Abstand einer halben Zeile.
% Letzte Zeile hat Freiraum von mind. 1 em
% half+ 1/3 der letzten Zeile
% half* 1/4 der letzten Zeile, ...- keiner
bibliography=totoc, % totoc Verweis aufs Literaturverzeichnis ohne Nummer im Inhaltsverz.
numbers=noendperiod,% noendperiod Kein Punkt nach Überschriftnummerierung
headings=small, % \setlength{\parindent}{0cm} % Kein Erstzeileneinzug
% smallheadings, normalheadings und bigheadings
% beeinflussen global die Fontgröße der Uberschriften
draft=false % draft=true Entwurfsmodus
]{scrbook} % siehe scrguide.pdf
\usepackage[left=3cm,right=3cm,top=3cm,bottom=3cm,includehead,includefoot]{geometry}
\usepackage[onehalfspacing]{setspace}
\usepackage[ngerman]{babel}
\usepackage[ansinew]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{scrpage2}
\usepackage{lmodern}
\usepackage{textcomp}
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{amsmath,amssymb}
\usepackage{comment}
\usepackage{float}
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{tabularx}
\usepackage{multirow}
\usepackage{footnote}
\usepackage{enumitem}
\usepackage{rotating}
\usepackage[german]{varioref}
\usepackage{array}
\usepackage{ragged2e}
\usepackage{ltablex}
% --- Definition der Tabellenstile ---
%--Definition der Farben ----------
\colorlet{tablesubheadcolor}{gray!60}
\colorlet{tableheadcolor}{gray!25}
\colorlet{tableblackheadcolor}{-red!75!green!50}%{black!50}
\colorlet{tablerowcolor}{gray!15.0}
\newcommand\tablealtcolored{%
\rowcolors{1}{tablerowcolor}{white!100}%
}
\newcommand\tableheadcolor{
\rowcolor{tableblackheadcolor}
}
% -- Schriftgrößen
\newcommand{\tablefontsize}{ \scriptsize}
\newcommand{\tableheadfontsize}{\scriptsize}
% --- Allgemein ---
% Layout der Tabelle: Ausrichtung, Schrift, Zeilenabstand
\newcommand\tablestylecommon{%
%\renewcommand{\arraystretch}{1.4} % Groessere Abstaende zwischen Zeilen
\normalfont\normalsize %
\sffamily\tablefontsize % Serifenlose und kleine Schrift
\centering% % Tabelle zentrieren
}
\newcommand{\tablestyle}{
\tablestylecommon
%\tablealtcolored
}
% --- Kopf --------
% Stil für den Tabellenkopf
\newcommand\tablehead{%
\tableheadfontsize
\sffamily\bfseries%
\slshape
\color{white}
}
\newcommand\tablebegin{%
\hline
}
% --- Zwischenkopf --
\newcommand\tablemidhead{%
\bfseries
}
% --- Inhalt --------
% um Tabellenspalten mit Flattersatz zu setzen, muss \\ vor
% (z.B.) \raggedright geschuetzt werden:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
% Linksbuendig:
\newcolumntype{v}[1]{>{\PreserveBackslash\RaggedRight\hspace{0pt}}p{#1}}
\newcommand\tablebody{%
\tablefontsize
\sffamily
\upshape%
}
% Fuss
\newcommand\tableend{%
\hline
}
% gedrehter Tabellenkopf
\newcolumntype{R}[1]{%
>{\begin{turn}{90}\begin{minipage}{#1}%
\raggedright\hspace{0pt}}l%
<{\end{minipage}\end{turn}}%
}
\newcommand{\myrotate}[1]{\rotatebox{90}{\parbox{16em}{#1}\hspace*{1ex}}}
\begin{document}
%- Tabelle --------------------------------------
%
%\begin{table}[H]
% Stil der Tabelle
\tablestyle
%
\tablealtcolored % Alternierende Farbe der Tabellenzeilen
%
\captionof{table}{Add caption}
\begin{tabularx}{\textwidth}{X*{8}{p{.8cm}}{c}} %
\tablebegin % Linie oberhalb des Kopfes
\tableheadcolor % Farbe für den Tabellenkopf
% Tabellenkopf
\tablehead &
\myrotate{\tablehead an dieser Stelle} &
\myrotate{\tablehead stehen verschiedene} &
\myrotate{\tablehead Spaltenüberschriften} &
\myrotate{\tablehead es gibt kurze} &
\myrotate{\tablehead und längere} &
\myrotate{\tablehead bei den längeren soll durch "16em"\ umgebrochen werden} &
\myrotate{\tablehead was auch passiert} &
\myrotate{\tablehead die Spaltenbreite} &
\myrotate{\tablehead könnte schmaler sein}
\tabularnewline\hline
%
% Zwischenkopf (2 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & $\circ$ & -- & -- \tabularnewline
% Linie am Ende der Tabelle
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \\
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Komponenten
} \tabularnewline
%
% Stil des Tabelleninhaltes
\tablebody
% Tabelleninhalt
auch die Zeilen & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\circ$ & $\bullet$ $\circ$ $\triangleright$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
haben unterschiedlich langen Inhalt & $\bullet$ & $\bullet$$\circ$ & $\bullet$ & $\bullet$ & $\circ$ & -- & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
welcher durch die p-Spalte vernünftig umgebrochen wird & $\bullet$ & $\circ$ & $\bullet$ & $\triangleright$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
bla bla blub & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & -- & $\triangleright$ & -- & -- \tabularnewline
blub blub bla & $\bullet$ & $\circ$ & $\circ$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ \tabularnewline
% Zwischenkopf (10 Spalten breit)
\multicolumn{10}{>{\columncolor{tablesubheadcolor}}l}{
\tablemidhead Funktionen
} \tabularnewline
wegen der optischen Trennung & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ & $\circ$ & $\bullet$ & $\circ$ & $\bullet$ & $\circ$ \tabularnewline
der verschiedenartigen Inhalte & $\bullet$ & $\bullet$ $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
ist dies Tabelle & $\bullet$ & $\circ$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ & $\bullet$ \tabularnewline
wegen der Farben & $\bullet$ & $\circ$ $\triangleright$ & -- & -- & $\circ$ & $\triangleright$ & -- & -- & $\circ$ \tabularnewline
ganz angenehm & -- & $\circ$ $\triangleright$ & $\bullet$ & -- & -- & $\triangleright$ & \tabularnewline
\tableend
\end{tabularx}
%\end{table}
\end{document}
% Ende des Dokumentes
[/code]