I would like to create a fixed width, single column tabularx
with centered text which is entirely enclosed. For some reason the width of the cell does not take the table with.
How can I archieve this goal?
Thanks!
\documentclass{scrreprt}
\usepackage[onehalfspacing]{setspace}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\begin{document}
{\renewcommand{\arraystretch}{1.5}
\begin{minipage}{\linewidth}
\begin{center}
\begin{tabularx}{5cm}{|c|}
\hline
First Argument\\ \hline
Second long Argument\\ \hline
Third Argument\\ \hline
\end{tabularx}
\end{center}
\end{minipage}
\end{document}
Best Answer