Rainer M Krug schrieb:

I have a table in a document in which I use the dcolumn package to align the decimal points. I have in the preamble the following:

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

I set the comumntype to d{6} and everything works fine - except the the header of the column in the tabe is left adjusted in the cell.

Set d to the greates number of characters you have in the column. If the longest entry is for example "-154.78", set "d{4.2}" (4 characters before the decimal point, 2 behind it).

Note that the dcolumn-package has lots of problems. I added a new section to 
the Extended-Instes manual describing these table cell alignments:
http://wiki.lyx.org/LyX/DocumentationDevelopment#Extended-Insets

regards Uwe

Reply via email to