I am trying to typeset a table of two columns, where each column consists of paragraphs and the paragraphs in the right hand column are set raggedleft. Here is a minimal example of the code I thought would work:
\documentclass{article}
\usepackage{array}
\newcommand{\lorem}{Lorem ipsum dolor sit amet, consectetur adipisicing elit.}
\begin{document}
\begin{tabular}{p{50mm}>{\raggedleft}p{50mm}}
\lorem&\lorem\\
\lorem&\lorem
\end{tabular}
\end{document}
However, that produces the error message
! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate
l.7 \lorem&
\lorem
?
and the output is not at all what I expected either.
Is there a better way?



\haligna TeX primitive, not a plain-tex macro? As such, it pretty much has to be the way latex constructs tables (that is, the tables themselves, not captions and tablecounters etc.) – morbusg Nov 2 '10 at 16:59\hbox(another primitive). IIRC, the rationale had to do with colour commands, so if I don't change colours inside the\hbox, I should be reasonably safe. – Harald Hanche-Olsen Nov 2 '10 at 17:34