[OS X TeX] \usepackage{longtable} - Justified text within a longtable

BenBehr ben at benbehr.eu
Mon May 18 11:28:11 EDT 2009


Hi,

I am trying to use a longtable where i would like to use justified  
alignment.

I have been using the first two of the attached definitions for a  
while now. Today I have tried to use the same kind of definition to  
justify the text within the tabel. But apparently I leck the right  
word that would need to replace the "?". Any suggestions?
Thanks,
Ben

%%% Deffinitionen for \usepackage{tabularx} and \usepackage{longtable}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} 		% zentrierte  
Spalten mit Breitenangabe
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} 		%  
rechtsbündig mit Breitenangabe
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} 		%  
rechtsbündig mit Breitenangabe
\newcolumntype{J}[1]{>{\ ? \arraybackslash}p{#1}} 				% Blocksatz mit  
Breitenangabe

Here one small example-code:

\documentclass[a4paper,11pt]{scrartcl} % Ausgangspapiergroesse
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1,ansinew]{inputenc}
\usepackage{array}
%\usepackage{tabularx}
\usepackage{longtable}

\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}} % zentrierte  
Spalten mit Breitenangabe		WORKING
\newcolumntype{R}[1]{>{\raggedleft\arraybackslash}p{#1}} %  
rechtsbündig mit Breitenangabe		WORKING
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}} %  
rechtsbündig mit Breitenangabe		WORKING
\newcolumntype{J}[1]{>{\justifying\arraybackslash}p{#1}} % Blocksatz  
mit Breitenangabe 			NOT WORKING!!!

\begin{document}
\begin{longtable}{C{3cm} J{10cm} }
\endfirsthead
\multicolumn{2}{c}{continued from previous page}\\
\endhead
\multicolumn{2}{c}{continued on the next page} \\
\endfoot
\endlastfoot
\textbf{Datum} &\textbf{ Ereignis} \\
Some Text, but not much. & Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text Text Text Text Text Text Text Text Text Text Text  
Text Text Text Text \\
Something Else & Blind text Blind text Blind text Blind text Blind  
text Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text  
Blind text Blind text Blind text Blind text Blind text Blind text \\
& hi \\
\end{longtable}
\end{document}







More information about the MacOSX-TeX mailing list