I used
Code: Select all
\begin{adjustbox}{max width = \columnwidth}
Code: Select all
\begin{tabular}{|p{4em}|p{33.5em}|}
My second problem is that the lines created with
Code: Select all
\hline
Can you help me?
Thanks
Code: Select all
\begin{adjustbox}{max width = \columnwidth}
Code: Select all
\begin{tabular}{|p{4em}|p{33.5em}|}
Code: Select all
\hline
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
>{\centering}
or (better) ragged2e's >{\Centering}
to your column declaration and use m
columns instead of p
columns. Use package booktabs for horizontal lines with extra space above and below. But this would collide with vertical lines. Generally, as the booktabs manual explains: vertical lines should be avoided.Code: Select all
\begin{table}[tbp]
\centering
\caption{caption test)}
\begin{adjustbox}{max width = \columnwidth}
\begin{tabular}{|p{4em}|p{33.5em}|}
\hline
\normalsize \textbf{ASD1} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \\
\hline
\normalsize \textbf{ASD2} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaa\\
\hline
\normalsize \textbf{ASD3} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa \\
\hline
\normalsize \textbf{ASD4} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\
\hline
\normalsize \textbf{ASD5} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\
\hline
\normalsize \textbf{ASD6} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \\
\hline
\normalsize \textbf{ASD7} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaa \\
\hline
\normalsize \textbf{ASD8} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \\
\hline
\normalsize \textbf{ASD9} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaa \\
\hline
\normalsize \textbf{ASD10} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\
\hline
\normalsize \textbf{ASD11} & \normalsize aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaa\\
\hline
\end{tabular}
\end{adjustbox}
\label{tab:mandatory}
\end{table}
Code: Select all
\begin{tabular}{|>{\centering\arraybackslash}c|m{33.5em}|}
Code: Select all
\renewcommand\tabularxcolumn[1]{m{#1}}% for vertical centering text in X column
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