Kavetsos, Georgios wrote:
Dear all,

This might seem an easy question, but I am new to Lyx and LaTeX in general.
I have a table and want the numbers to be aligned at the full-stop. Having a 
minus sign in front of the number distorts the alignment.
eg:

0.043
-0.274
1.429

Any suggestions?
Many thanks
George


This is covered in part in section 2.12.2 of the Embedded Objects help file. Assuming you just have numbers and nothing else in that column, the easiest approach IMHO is to use the dcolumn package. Add

\usepackage{dcolumn}

to the preamble (and make sure you have the dcolumn LaTeX package installed). In the table, right-click anywhere in the column of numbers, click Settings, and put D{.}{.}{3} in the LaTeX argument entry of the Table Settings tab. (This is in LyX 1.6.0; it works in earlier versions, but right clicking in the column takes you directly to the Table Settings tab.)

/Paul

Reply via email to