Latex will automatically adjust the width of a cell in a table, but it will not consider the width of the page, so sometimes parts of the table are out of the page. If you want to control the column width of a table, you may want to use p option instead of l, c or r for left, center or right alignment.
For example:
\begin{table}[ht]
\centering
\begin{tabular}{|c|p{2cm}|p{1cm}|}
\hline
a & bb & c\\
\hline
\end{tabular}
\end{table}
Good luck!
11 comments:
Many thanks for your post. Saved my day^^
Thank you for the post. this is very useful for me
Doesnt work!
Thanks! It works.
Thank you!
https://en.wikibooks.org/wiki/LaTeX/Tables
Wow, thanks so much. That saved my life today!!
Thanks!
Thanks! Saved me so much time!!!
It was a great help! thanks!
You made some first rate factors there. I seemed on the internet for the problem and found most individuals will go along with with your website. gsn casino
Post a Comment