Answers for "latex automatic new line in tables"

1

table Latex new line in same cell

\begin{tabular}{|c|c|c|}
\hline
here&\vtop{\hbox{\strut top line}\hbox{\strut botline}}&more\\
\hline
x&y&z\\
\hline
\end{tabular}
Posted by: Guest on August-05-2021
0

latex automatic new line in tables

\documentclass{article}

\usepackage{tabularx}

\begin{document}

\begin{tabularx}{8cm}{|X|X|X|X|}
\hline
In this table & each column got the same & width & 2cm \\
\hline
As one could & easy see & the width is & to small for some of the cells  \\
\hline
\end{tabularx}

\end{document}
Posted by: Guest on March-28-2022

Browse Popular Code Answers by Language