%% %% Der LaTeX-Begleiter, zweite Auflage (September 2005) %% %% Beispiel 5-3-1 von Seite 258. %% %% Copyright (C) 2005 Frank Mittelbach, Michel Goossens, %% Johannes Braams, David Carlisle, and Chris Rowley %% %% Uebersetzung: Copyright (C) 2005 Claudia Krysztofiak, %% Rebecca Stiels und Frank Mittelbach %% %% It may be distributed and/or modified under the conditions %% of the LaTeX Project Public License, either version 1.3 %% of this license or (at your option) any later version. %% %% See http://www.latex-project.org/lppl.txt for details. %% \documentclass{lb2exa} \pagestyle{empty} \setcounter{page}{6} \setlength\textwidth{318.67087pt} \StartShownPreambleCommands \usepackage{array,calc} \newlength\mylen \newenvironment{tabularc}[1] {\setlength\mylen {\linewidth/(#1)-\tabcolsep*2-\arrayrulewidth*(#1+1)/(#1)}% \par\noindent % neuer Absatz, Anfang linksbündig \begin{tabular*}{\linewidth}% {*{#1}{|>{\centering\hspace{0pt}}p{\the\mylen}}|}} {\end{tabular*}\par} \StopShownPreambleCommands \begin{document} \begin{tabularc}{3} \hline Inhalt von Spalte eins & Spalte zwei & Das ist Spalte drei \tabularnewline\hline \empty Erneut Spalte eins & und Spalte zwei & Das ist Spalte drei \tabularnewline\hline Noch mal Spalte eins & Spalte zwei & Letzte Spalte drei \tabularnewline\hline \end{tabularc} \end{document}