Graphics, Figures & Tables ⇒ extra space in table cell
extra space in table cell
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
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
extra space in table cell
>{\raggedright}p{10em}
.- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
extra space in table cell
microtype
package helps in justifying and avoiding too much white space:\usepackage{microtype}
You could even allow hyphenation in table cells:
Code: Select all
\usepackage{array}
\usepackage{ragged2e}
\newcolumntype{P}[1]{>{\RaggedRight\hspace{0pt}}p{#1}}
...
\begin{tabular}{P{3cm}P{4cm}}
...
\end{tabular}