this is supposed to be an easy question, but I didn't find a clear answer anywhere.
I want to use dcolumn
with comma as a separator. However, I found different solutions and the manual is unclear to me. It says in D{>sep.tex<}{>sep.dvi<}{>decimal places<}
, I have to choose ',' instead of '.' to achieve alignment to the comma. However I dont understand the difference between {>sep.tex<}
and {>sep.dvi<}
.
Also I found a solution where someone only used {>sep.dvi<}
as a comma, whereas the manual suggests to use comma in both, {>sep.tex<}
and {>sep.dvi<}
.
Can someone explain the difference and tell me how to specify it correctly?
MWE simple as that:
\newcolumntype{G}{D..{2.1}}
- where G
currently aligns to the decimal point, not the comma, in case of 2 decimal places before the separator and 1 after.
Thanks.
\newcolumntype{G}{D{,}{,}{2.1}}
?\newcolumntype{G}[1]{D{.}{,}{2.1}}
.{>sep.tex<}
is the one to match in the tex code and the{>sep.dvi<}
is the one, which will appear in the document.{>sep.tex<}
does the actual alignment, whereas{>sep.dvi<}
is the visible outcome. If you want to make your comment an answer, I will accept it.