[OS X TeX] \usepackage{longtable} - Justified text within a longtable
BenBehr
ben at benbehr.eu
Mon May 18 13:15:16 EDT 2009
Hi,
I hav just fund the solution. p{3cm} works just fine. Stupid to
forget. Lol.
Thanks anyway,
Ben
On 18.05.2009, at 17:28, BenBehr wrote:
> 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}
>
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
More information about the MacOSX-TeX
mailing list