Taking apan's comment and turning it into an example:
\documentclass{article}
\usepackage{array}
\newcolumntype{$}{>{\global\let\currentrowstyle\relax}}
\newcolumntype{^}{>{\currentrowstyle}}
\newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
#1\ignorespaces
}
\begin{document}
\begin{tabular}{$l^c^r}
\rowstyle{\bfseries}
a & a & a \\
b & b & b \\
c & c & c \\
\end{tabular}
\end{document}
This gives:

You might, of course, choose different markers for the column types.
To explain what is going on, the first 'column' is of type $
(could be any symbol not required in the preamble). This simply sets \currentrowstyle
to do nothing, which means that in each row this command will be a no-op unless something else happens. The first real column (here l
) will contain the command to make it bold (if required), but that is not true for the other columns. They therefore are preceded by ^
, which is another fake column type used to apply \currentrowstyle
.
In a normal row, \currentrowstyle
therefore starts off as \relax
and never changes, so the ^
do nothing and the row is unchanged. However, if the first column sets \rowstyle
, this is saved as \currentrowstyle
(for the later columns) and applied (for this column). The ^
then insert this at the start of each column in the row, so everything is bold.
(All of the operations are global as table cells form groups.)
From the numprint manual:
If you also want to use that font in math mode, you may use the math version
npbold by using \mathversion{npbold} or \npboldmath. In order to save memory,
these commands and the npbold math version are only available if you call
numprint.sty using the boldmath package option.
So you just need to use \usepackage[boldmath]{numprint}
:
\documentclass{article}
\usepackage[boldmath]{numprint}
\begin{document}
\npdecimalsign{.}
\nprounddigits{2}
\begin{tabular}{n{5}{2}}
0.123456 \\
\textbf{0.123456} \\
{\npboldmath}0.1234562 \\ % Now working
\underline{\numprint{0.123456}}
\end{tabular}
\npnoround
\end{document}
to produce:

Note that the use of \npboldmath
is a little strange: you need to put it inside braces before the number. If you want to apply formatting like \underline
then you need to explicitly put \numprint
inside this. If you are doing this often you might want to define a macro like:
\newcommand\Underline[1]{\underline{\numprint{#1}}
The same comment applies when using \textbf
-- although you probably should be using \mathbf
above. That is,
$\mathbf{\numprint{0.123456}}$
produces 0.12.
Best Answer
You can use "non extended bold face":
Note. From your question I gather that you're using
\bf{13}
or something like that. It's wrong for two reasons:\bf
is an obsolete command;Use
\textbf{13}
or{\bfseries 13}
(the former is preferred for single snippets of boldface text, the latter is for longer passages or in the definition of environments).