Theses, Books, Title pagesWrapping text in tabularx table

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

Wrapping text in tabularx table

Post by templateuser »

Hi there,

I’ve got a problem with tabularx.
When i use tabluarx in this template the text in a column doesn’t wrap.
Does anybody have any idea how solve this problem?

For example:

Code: Select all

\begin{tabularx}{3cm}{r l l r X }
Part No. & Date & Bin No. & Price & Description \\
10034 & January 1998 & A-4 & 10.94 & Added in 1998 but discontinued five years later due to low demand. \\
2994 & March 2006 & B-2 & 8.74 & Replaced part no. 2998 for use in vacuum cleaners.
\end{tabularx}
The tamplate ignores the command {3cm} and the text doesn’t wrap.

Thank you for any answer!

Sandro

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

Wrapping text in tabularx table

Post by Vel »

Hi Sandro,

The example you pasted works just fine except your value of 3cm is way too small. When I changed the first line to \begin{tabularx}{\linewidth}{r l l r X} the table takes up the width of the page with the last column wrapping correctly.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply