Revision [19971]

This is an old revision of LatexTabellen made by ToBo on 2014-10-21 22:14:22.

 

Tabellen in LateX


http://www.namsu.de/Extra/pakete/Tabulary.html

1. Sehr einfache Tabelle


Nicht empfehlenswert.

{|cellpadding="10"
|-valign="top"
|

||

||

|
}



2. Tabelle mit Rand


\begin{table}
    \center
    \begin{tabular}{|l|l|l|}
      \hline
      1 & 2 & 3 \\ \hline
      4 & 5 & 6 \\ \hline
      7 & 8 & 9 \\ \hline
    \end{tabular}
    \caption{Zutreffende Normen und Gesetze}
    \label{tab:ZutreffendeNormenUndGesetze}
\end{table
}



3. Tabelle mit tabularx


Bessere möglichkeiten der Textausrichtung, aber es geht noch besser mit tabulary...

\begin{table}[H]
\label{tab:RelevanteRegularien}
\tablestyle
\begin{tabularx}{\textwidth}{lXXlX
}
\tableheadcolor
   \tablehead Kurzbezeichnung &
   \tablehead Ausrührliche Bezeichnung &
   \tablehead Typ &
   \tablehead Stellt Anforderungen an \tabularnewline
%
\tablebody
   \textit{Beschreibung} & Inhalt & Inhalt & Inhalt  \tabularnewline
   \textit{Beschreibung} & Inhalt & Inhalt & Inhalt  \tabularnewline
\tableend
\end{tabularx}
\caption{Tabelle mit tabularx}
\end{table
}



4. Tabellen mit tabulary


Die besten Ergebnisse erzielte ich mit tabulary

\begin{table}[H]
\tablestyle
\begin{tabulary}{\linewidth}{LLJ
}
\tableheadcolor
   \tablehead Spaltenüberschrift 1 &
   \tablehead Spaltenüberschrift 2  &
   \tablehead Spaltenüberschrift 3 \tabularnewline
%
\tablebody
   Zeile 1; Spalte 1
   & Zeile 1; Spalte 2
   & Zeile 1; Spalte 3
   \tabularnewline \hline
   %
   Zeile 2; Spalte 1
   & Zeile 2; Spalte 2
   & Zeile 2; Spalte 3
   \tabularnewline \hline
   %
\tableend
\end{tabulary}
\caption{Tabelenbeschriftungstext}
\label{tab:ChecklisteRegAnforderungen}
\end{table
}



5. Tabelle mit alternierender Farbe


\begin{table}[H]
   \tablestyle
   \tablealtcolored
   \begin{tabular}{*{2}{v{0.45\textwidth}}
}
   \hline
   \tableheadcolor
\tablehead Tabellenkopf &
\tablehead Tabellenkopf \tabularnewline\hline
% Zwischenkopf
\multicolumn{2}{>{\columncolor{tablesubheadcolor}}l}{
   \bfseries Zwischenkopf
} \tabularnewline

\tablebody
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
\multicolumn{2}{>{\columncolor{tablesubheadcolor}}l}{
   \bfseries Zwischenkopf
} \tabularnewline
 Inhalt  & Inhalt \tabularnewline
 Inhalt  & Inhalt \tabularnewline
   \hline
   \end{tabular}
\end{table
}




Siehe auch
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki