2

I'm reading through the not-so-short guide to Latex, and I've just got up to the tabular environment. If I want to create a table with two columns, one left-aligned and one right-aligned, I write this:

\begin{tabular}{lr}
text & more text \\
\end{tabular}

Meanwhile, if I wanted the second column to instead have width 1cm and to wrap text, I would write

\begin{tabular}{l p{1cm}}
text & more text \\
\end{tabular}

My question is this: what if I wanted the second column to be right-aligned and to have the behaviour of p{1cm}? I see no reason that these commands should be in conflict - the behaviours they cause are completely independent. But I can't see a way of giving both arguments to one column simultaneously.

Torbjørn T.
  • 206,688

0 Answers0