[texhax] longtable//dcolumn//specs

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Nov 7 13:15:46 CET 2014


On 07/11/2014 11:48, Simmie, John wrote:
> Can someone express in plain English please what this construct is specifying in laying out 8 columns?
> 
> \begin{longtable}{@{} l @{\extracolsep{\fill}} *{7}{d{7}} @{}}

 - "@{}" Suppress normal space between columns which would be added
   before the first column
 - "l" A left-aligned column
 - " @{\extracolsep{\fill}}" replace the normal inter-column space
   with one which will stretch to fill the horizontal space
 - "*{7}" repeat the next entry seven times
 - "{d{7}}" create a column of type 'd' with argument '7' (see below):
   this column type is repeated seven times by the previous statement
 - "@{}" Suppress normal space between columns which would be added
   after the last column

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

Creates a new column type which aligns on the decimal marker and allows
for #1 digits in the decimal part. Thus from the "d{7}" line about we
get columns which allow for seven decimal digits and align the decimal
parts.
--
Joseph Wright





More information about the texhax mailing list