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.
horizontal alignmentlongtable
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.
Best Answer
You can define a new column as
The MWE:
PS. The package
booktabs
is used to get beautiful rules instead of\hline
.