[Tuglist] Decimal alignmnet

H.S.Rai tuglist@tug.org.in
Thu, 7 Mar 2002 13:05:16 +0530 (IST)


>  Renugopal M wrote:
>
>  >  Can somebody help me in compiling the table given
>  >  below with decimal alignment and send me the same.

Please give proper subject to your mails.

You need following  lines in your file:

1. Use package dcolumn

\usepackage{dcolumn}

2. Define new column to align on decimal

\newcolumntype{d}[1]{D{.}{.}{#1}}


3. Use tabular like this to cause 2nd column to align on
decimal, by using d{n}, where n is no of places after
decimal.

\begin{tabular}{|l|d{3}|c|c|}

HTH

H.S.Rai