I am using dcolumn for a tabular, and I would like to have a single cell printed in bold face.
I know a similar question has been posed here, and here, and the proposed solution is mentioned in the documentation (page 4).
However, the proposed solution does not appear to work, at least in the minimal example below:
\documentclass[aps,prb,reprint]{revtex4-2}
\usepackage{amsmath,amssymb,times,dcolumn}
\newcolumntype{b}{D{.}{.}{3}}
\newcolumntype{a}{D{.}{.}{6}}
% Bold version
\newcolumntype{B}{>{\boldmath\DC@{.}{.}{3}}c<{\DC@end}}
\newcolumntype{A}{>{\boldmath\DC@{.}{.}{6}}c<{\DC@end}}
\begin{document}
\begin{table}
\begin{tabular}{ab}
1.134(2) & 1.3(1) \
\multicolumn{1}{A}{1.134(2)} & 1.3(1)
\end{tabular}
\end{table}
\end{document}
Compiling with
pdflatex test.tex
gives
! Undefined control sequence.
\@preamble ...hskip 1sp\d@llarbegin \boldmath \DC
@{.}{.}{6}\array@row@rst \...
l.15 \multicolumn{1}{A}{1.134(2)}
& 1.3(1)


\makeatletter– Joseph Wright Feb 18 '24 at 22:19timespackage borders on being obsolete. I suggest you replace\usepackage{times}with\usepackage{newtxtext,newtxmath}. – Mico Feb 19 '24 at 07:28