Hi
when I create a table using Tabular or Long table and I specify the columns width . a lot of extra spaces in a cell between words generated. How I can solve this issue
Thanks
Graphics, Figures & Tables ⇒ extra space in table cell
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
extra space in table cell
You can use something like
>{\raggedright}p{10em}
.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
- Stefan Kottwitz
- Site Admin
- Posts: 10337
- Joined: Mon Mar 10, 2008 9:44 pm
extra space in table cell
The
You could even allow hyphenation in table cells:
Stefan
microtype
package helps in justifying and avoiding too much white space:\usepackage{microtype}
You could even allow hyphenation in table cells:
Code: Select all
Code, edit and compile here:
\usepackage{array}\usepackage{ragged2e}\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}...\begin{tabular}{P{3cm}P{4cm}}...\end{tabular}
LaTeX.org admin