Alignment of Numbers

2008-11-21 Thread Kavetsos, Georgios
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


Re: Alignment of Numbers

2008-11-21 Thread Paul A. Rubin

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



Re: Alignment of Numbers

2008-11-21 Thread Andre Poenitz
On Fri, Nov 21, 2008 at 04:55:25PM -, 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?

The good old LaTeX way is to use two column separated by a literal dot:

[EMAIL PROTECTED] 
12\\
34343234
\end{tabular}

To make this work in LyX, use   [EMAIL PROTECTED]   as LaTeX argument in the
table settings dialog create on right-click _on the first_ column
of the table.

Andre'

PS: Did I ever mention the table dialog is a mess UI-wise?


Alignment of Numbers

2008-11-21 Thread Kavetsos, Georgios
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


Re: Alignment of Numbers

2008-11-21 Thread Paul A. Rubin

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



Re: Alignment of Numbers

2008-11-21 Thread Andre Poenitz
On Fri, Nov 21, 2008 at 04:55:25PM -, 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?

The good old LaTeX way is to use two column separated by a literal dot:

[EMAIL PROTECTED] 
12\\
34343234
\end{tabular}

To make this work in LyX, use   [EMAIL PROTECTED]   as LaTeX argument in the
table settings dialog create on right-click _on the first_ column
of the table.

Andre'

PS: Did I ever mention the table dialog is a mess UI-wise?


Alignment of Numbers

2008-11-21 Thread Kavetsos, Georgios
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


Re: Alignment of Numbers

2008-11-21 Thread Paul A. Rubin

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



Re: Alignment of Numbers

2008-11-21 Thread Andre Poenitz
On Fri, Nov 21, 2008 at 04:55:25PM -, 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?

The good old LaTeX way is to use two column separated by a literal dot:

[EMAIL PROTECTED] 
1&2\\
3434&3234
\end{tabular}

To make this work in LyX, use   [EMAIL PROTECTED]   as "LaTeX argument" in the
table settings dialog create on right-click _on the first_ column
of the table.

Andre'

PS: Did I ever mention the table dialog is a mess UI-wise?