How do I set right alignment in a longtable column with a fixed width?

I have \begin{longtable}{p{3cm}p{8cm}}

and I'd like my first column to be aligned on the right.

1 Answer 1


You can define a new column as


The MWE:

 col1 & col2 \\\midrule
 \lipsum[1] & \lipsum[2]  \\ \bottomrule

enter image description here

PS. The package booktabs is used to get beautiful rules instead of \hline.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .