LaTeX und Tabellen

Dies ist ein Thema für sich, jedoch nach ein bisschen ausprobieren hab ich doch noch ein gutes Resultat hin bekommen. Eine Tabelle sieht mit folgendem Aufbau am besten aus.

\begin{table*}[h]
\centering
\begin{tabularx}{\textwidth}{|X | p{7cm} |}
\hline
\multicolumn{2}{|l|}{Titel} \\
\hline
{\bf Stärken} & {\bf Schwächen} \\
\hline
\Stärke 1 & Schwäche 1 \\
\hline
{\bf Chancen} & {\bf Bedrohungen} \\
\hline
\Chance 1 & Bedrohung 1 \\
\hline
\end{tabularx}
\label{tab:label}
\caption{caption}
\end{table*}

Vielleicht ist dies ja für jemand nützlich.

Eine Reaktion zu “LaTeX und Tabellen”

  1. mike f.

    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}

Einen Kommentar schreiben