Graphics, Figures & TablesTexts overlap in a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
starnjust
Posts: 2
Joined: Sat Jul 05, 2014 12:58 pm

Texts overlap in a table

Post by starnjust »

Hi, everyone

I have a problem in Latex.
Texts overlap in adjacent columns when the widths of the 4th and 5th columns are fixed to 2cm.

The code is here.

Code: Select all

\begin{table*}[!t]
\renewcommand{\arraystretch}{1.3}
\centering
\begin{tabular}{l p{4cm} l p{2cm} p{2cm} l l l}
\hline
$i$ & $I_i$ & $|F_{l_i}|$ & $^\bullet  p_{c_i}$ & $p_{c_i}^\bullet$ & $M_0(p_{c_i})$ & $N_{LP}$ & $N_{var}$ \\
\hline
1 & $33\mu_1+33\mu_2+33\mu_3+6\mu_4+6\mu_5+38\mu_6+38\mu_7+6\mu_9+104\mu_{10}+104\mu_{11}+107\mu_{12}+107\mu_{13}+\mu_{14}+5\mu_{15}\leqslant 421$ & 19 & $38t_5,104t_{10},33t_{14},106t_{17},5t_{19}$ & $6t_1, 32t_3, 98t_8, 33t_{11}, 107t_{15}, 4t_{18}$ & 421 & 474 & 100\\
2 & $\mu_1+\mu_2+\mu_6+\mu_7+27\mu_9+3\mu_{10}+3\mu_{11}+6\mu_{12}+9\mu_{13}+18\mu_{14}\leqslant 71$ & 8 & $t_5, 24t_{8}, 3t_{10}, t_{13}, 18t_{18}$ & $t_3, 27t_7, t_{11}, 6t_{15}, 3t_{16}, 9t_{17}$ & 71 & 455 & 81\\
\hline
\end{tabular}
\end{table*}

How to address it?
Thanks in advance.
Attachments
texts overlap in table
texts overlap in table
show.jpg (25.4 KiB) Viewed 5627 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Texts overlap in a table

Post by Johannes_B »

Add the comma to the list of breakable characters.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply