Kommentare zu: LaTeX und Tabellen http://diplomarbeit.it-board.ch/2007/01/04/latex-und-tabellen/ Schnigg-Schnagg Mon, 04 Jun 2007 07:52:52 +0000 http://wordpress.org/?v=2.0.7 Von: mike f. http://diplomarbeit.it-board.ch/2007/01/04/latex-und-tabellen/#comment-100 Fri, 13 Apr 2007 21:34:31 +0000 http://diplomarbeit.it-board.ch/2007/01/04/latex-und-tabellen/#comment-100 hier eine weitere Möglichkeit :) ein wenig mit farben... \begin{table}[H] %die tabelle muss hier liegen \centering \begin{tabularx}{0.75\textwidth}{| X | X |} % klein + kompakt + gleichmässig \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % adding color to titles % remember to add \usepackage{colortbl} % { \rowcolor[w]{x}[y][z] % w is the color model: % rgb (red, green, blue); cmyk (cyan, magenta, yellow, black); % gray; or named (names known to the selected driver), % x is the selected color, % y is the amount of left overhang past the widest entry in the column, and % z is the amount of right overhang past the widest entry in the column. % \cellcolor[gray]{.75} for a single cell % \rowcolor[cmyk]{0,0,0,0.1} % makes a grey bg % \rowcolor[gray]{0,9} % makes a grey bg % \rowcolor[rgb]{0.9,0.9,0.9} % makes a grey bg \rowcolor[gray]{0.9} { \bf \begin{flushleft}Strengh\end{flushleft}} Weakness\end{flushright}} \\ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \hline % { \onehalfspacing % Stärken mit 1,5 Zeilenabstand \begin{itemize} \item Stärke 1 \item Stärke 2 \item Stärke 3 \end{itemize} } & %%%%%%%%%%%%%%% { \onehalfspacing % Schwächen \begin{itemize} \item Schwäche 1 \item Schwäche 2 \item Schwäche 3 \end{itemize} } \\ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% { \onehalfspacing % Chancen %{ \double % Chancen \begin{itemize} \item Chance 1 \item Chance 2 \item Chance 3 \end{itemize} } & %%%%%%%%%%%%%%% { \onehalfspacing % Bedrohung %{ \double % Bedrohung \begin{itemize} \item Bedrohung 1 \item Bedrohung 2 \item Bedrohung 3 \end{itemize} } \\ \hline %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \rowcolor[gray]{0.9} {\bf \begin{flushleft} Opportunity\end{flushleft}} Threat\end{flushright}} \\ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \hline \end{tabularx} \label{tab.swot} \caption{SWOT-Analyse} \end{table} hier eine weitere Möglichkeit :)
ein wenig mit farben…

\begin{table}[H] %die tabelle muss hier liegen
\centering
\begin{tabularx}{0.75\textwidth}{| X | X |} % klein + kompakt + gleichmässig
\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% adding color to titles
% remember to add \usepackage{colortbl}
% { \rowcolor[w]{x}[y][z]
% w is the color model:
% rgb (red, green, blue); cmyk (cyan, magenta, yellow, black);
% gray; or named (names known to the selected driver),
% x is the selected color,
% y is the amount of left overhang past the widest entry in the column, and
% z is the amount of right overhang past the widest entry in the column.
% \cellcolor[gray]{.75} for a single cell
% \rowcolor[cmyk]{0,0,0,0.1} % makes a grey bg
% \rowcolor[gray]{0,9} % makes a grey bg
% \rowcolor[rgb]{0.9,0.9,0.9} % makes a grey bg
\rowcolor[gray]{0.9}
{ \bf \begin{flushleft}Strengh\end{flushleft}} Weakness\end{flushright}} \\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hline
%
{ \onehalfspacing % Stärken mit 1,5 Zeilenabstand
\begin{itemize}
\item Stärke 1
\item Stärke 2
\item Stärke 3
\end{itemize}
}
& %%%%%%%%%%%%%%%
{ \onehalfspacing % Schwächen
\begin{itemize}
\item Schwäche 1
\item Schwäche 2
\item Schwäche 3
\end{itemize}
}
\\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
{ \onehalfspacing % Chancen
%{ \double % Chancen
\begin{itemize}
\item Chance 1
\item Chance 2
\item Chance 3
\end{itemize}
}
& %%%%%%%%%%%%%%%
{ \onehalfspacing % Bedrohung
%{ \double % Bedrohung
\begin{itemize}
\item Bedrohung 1
\item Bedrohung 2
\item Bedrohung 3
\end{itemize}
}
\\
\hline
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\rowcolor[gray]{0.9}
{\bf \begin{flushleft} Opportunity\end{flushleft}} Threat\end{flushright}} \\
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hline
\end{tabularx}
\label{tab.swot}
\caption{SWOT-Analyse}
\end{table}

]]>