I use dcolumn to align (and modify) numerical entries in a table. When I try to change the font of a cell to mathbf it affects only the number before the decimal point.
Assigning the mathbf to the numbers before and after the separator individually is not an option for me, because the number is read as one value from a csv file.
A similar effect also occurred when changing the color (which was already asked here). Here is my slightly modified example:
\documentclass[]{article}
\usepackage{dcolumn}
\begin{document}
\begin{tabular*}{\linewidth}{lD{,}{,}{1}}
text & 1,12\\
text & \mathbf 1,12\\ % only first part is bold
%text & \mathbf{1,12}\\ % leads to compilation error
text & \mathbf{1},\mathbf{12}\\ % not really nice and not usable for me
\end{tabular*}
\end{document}
Is there a similar solution to this problem?
Thank you very much!

Scolumntype from thesiunitxpackage too – cmhughes Nov 27 '12 at 00:19