On 14/05/2010 11:24 AM, Edwin Leuven wrote:
i tried both approaches in the attached.

That's a great example file. So according to this, column alignment on the decimal point is already possible in LyX in one of two ways: using the dcolumn package, or manual splitting numbers and decimals in different cells.

you'll note on page 1 of the
pdf that dcolumn defaults to something which is too wide with
D{.}{.}{-1}

If you specify the number of decimals, dcolumn won't use so much extra space. E.g. in your example file

\newcolumntype{d}{D{.}{.}{6}}

works very well. So it does require a bit of tuning.

atm i am not so sure what the best option is anymore

If I was going to implement this natively in LyX, I would use dcolumn and have a UI for the number of decimals to align on, with an "automatic" option. But considering that you can already do this with two lines of preamble code, I am happy with the current situation.

Cheers,
Julien

Reply via email to