I wished to bold some numbers in a table I am showing with pgfplotstable. The manual and this answer
suggest using
every row 2 column 1/.style={ %Row number just for example
postproc cell content/.style={
@cell content/.add={$\bf}{$}
}
},
However, when I do that it puts the numbers out of alignment because the bolded ones are too wide.
After reading a bit about typography, I've concluded that what I want is to display the numbers using a font featuring tabular figures, with duplexing so that bold has the same widths.
I looked at this answer for normal tabular tables, and it shows exactly what I want. However when I tried:
every row 4 column 1/.style={ %Row number just for example
postproc cell content/.style={
@cell content/.add={\fontseries{b}\selectfont}{}
}
},
There was no change. It didn't even make it bold at all.
Minimal verifiable example:
\documentclass{article}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstabletypeset[
precision=5, fixed zerofill=true,
every row 2 column 1/.style={
postproc cell content/.append style={
@cell content/.add={$\bf}{$}
}
}
]{
a b
5 1.23
6 1.6311
7 4.231
9 2.10144
}
\end{document}

