[OS X TeX] Automatic linebreak in table - just do not get it work

Niels Kobschaetzki n.kobschaetzki at googlemail.com
Sun Sep 28 22:09:51 CEST 2008


On Sun, Sep 28, 2008 at 10:00 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
>
> On Sep 28, 2008, at 2:17 PM, Niels Kobschaetzki wrote:
>
>> On Sun, Sep 28, 2008 at 9:09 PM, Herbert Schulz <herbs at wideopenwest.com>
>> wrote:
>>
>>> On Sep 28, 2008, at 1:35 PM, Niels Kobschaetzki wrote:
>>
>> <snip do not get tables with line break to work>
>>
>>
>>> If you want text to wrap you should use the paragraph (p) column
>>> specifier.
>>> It takes a single argument which is the width of the column.
>>
>> I changed it now to:
>> \begin{table}[!hbt]
>>                \footnotesize
>>                \begin{tabular}{p{3cm}|p{3cm}|c|c|}
>>        Gewerbe & Kapitaleinlage & Angestellte (Mittelunternehmen) &
>> Angestellte (Kleinunternehmen) \\
>>                produzierende Industrie, Baugewerbe, Untengy\={o}
>> (fahrendes
>> Gewerbe) & <300 Mio \yen (1,8 Mio \euro) & <300 Angestellte & <20\\
>>                Großhandel & <100 Mio \yen (ca. 600.000 \euro) & <100 &
>> <5\\
>>                Serviceindustrie & <50 Mio \yen (ca. 300.000 \euro) & <100
>> & <5\\
>>                Kleinhandel & unter 50 Mio \yen (ca. 300.000 \euro) & <50 &
>> <5\\
>>        \end{tabular}
>>        \caption{Defintion von KMU nach Industrie in Zahlen}
>>        \end{table}
>>
>> And it still is far away from working.
>>
>> Niels
>
> Howdy,
>
> What are you expecting? Wrapped text in narrow columns is almost always
> pretty ugly.

I would like to see the text wrapped for example -- it just doesn't do it

> You may try to make it ragged right by placing a \raggedright
> command before Gewerbe but even that is pretty ugly.
>
> Can you give a complete but minimal document so we can know what packages
> you are loading?

Here it is:

\documentclass[smallheadings,headsepline,12pt,a4paper,oneside]{scrartcl}
\usepackage[encapsulated]{CJK}
\usepackage{ucs}
\usepackage[ngerman]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{fullpage}
\usepackage{url}
\usepackage{wasysym}
\usepackage{textcomp}
\usepackage{boxedminipage}
\usepackage{pdfsync}
\usepackage[activate]{pdfcprot}
\usepackage{tabularx} %I am loading that because of my experimenting
with tabularx
\usepackage{floatflt}
\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{setspace}
\onehalfspacing
\usepackage{pslatex}
\usepackage{sectsty}
\allsubsectionsfont{\usefont{OT1}{phv}{bc}{n}\selectfont}
\usepackage{chicago}
\typearea{12}
\pagestyle{headings}
\clubpenalty = 9999
\widowpenalty = 9999
\tolerance=9000
\newcommand{\cjktext}[1]{\begin{CJK}{UTF8}{cyberbit}#1\end{CJK}}
\newcommand{\yen}{{\ooalign{Y\crcr$=$}}}

\begin{document}

\begin{table}[!hbt]
	\footnotesize
	\begin{tabular}{p{3cm}|p{3cm}|c|c|}\\
	Gewerbe & Kapitaleinlage & Angestellte (Mittelunternehmen) &
Angestellte (Kleinunternehmen) \\
		produzierende Industrie, Baugewerbe, Untengy\={o} (fahrendes
Gewerbe) & <300 Mio \yen (1,8 Mio \euro) & <300 Angestellte & <20\\
		Großhandel & <100 Mio \yen (ca. 600.000 \euro) & <100 & <5\\
		Serviceindustrie & <50 Mio \yen (ca. 300.000 \euro) & <100 & <5\\
		Kleinhandel & unter 50 Mio \yen (ca. 300.000 \euro) & <50 & <5\\
	\end{tabular}
	\caption{Defintion von KMU nach Industrie in Zahlen}
	\end{table}
\end{document}


Thx for the help

Niels
-------------- next part --------------
----------- Please Consult the Following Before Posting -----------
TeX FAQ: http://www.tex.ac.uk/faq
List Reminders and Etiquette: http://www.esm.psu.edu/mac-tex/list/
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 macostex-archives mailing list