I have a problem with setting up a table, created in tabularx
, to the text width of my article. What can I do?
Here is the dummy example:
\documentclass[12pt]{article}
\usepackage{ltablex,booktabs}
\usepackage{lipsum}
\begin{document}
\lipsum[100]
\begin{tabularx}{\textwidth}{lX}
\caption{cccc} \\
\toprule
\textbf{Definition} & \textbf{Counts} \\
\midrule
\textit{A} & 68\\
\textit{B} & 10\\
\textit{C} & 10\\
\midrule
$\sum$ & 88\\
\bottomrule
\end{tabularx}
\end{document}
The PDF view:
X
column is required.\caption
should not be insidetabularx
environmenttabularx
!ltablex
package but you do not say.