I would like that the width of the first column of an array to be 2cm and the second column to be 1cm. I have the following document but apparently the setting for the width of the second column is not working.
\documentclass{book}
\usepackage{multicol}
\begin{document}
\begin{multicols}{2}
\noindent
\begin{tabular}{ p{2cm} l p{1cm} r}
abc abc abc abc & xyz xyz xyz xyz xyz \\
\end{tabular}
\end{multicols}
\end{document}
Best Answer
The problem is the unnecessary
l
anndr
in\begin{tabular}{ p{2cm} l p{1cm} r}
:Update: Regarding aligning the second column right, I recommend reading this answer