I am trying to surround all elements in a specific table row with square brackets, using postproc cell content
in pgfplotstable
.
As shown in the MWE, it works well for processing a column, but not for a row:
\documentclass{article}
\usepackage{pgfplotstable}
\begin{document}
\pgfplotstabletypeset[
string type,
every first row/.append style={postproc cell content/.append style={/pgfplots/table/@cell content/.add={[}{]}}},
columns/B/.append style={postproc cell content/.append style={/pgfplots/table/@cell content/.add={[}{]}}},
]{
A B C
m s kg
1 2 3
4 5 6
7 8 9
}
\end{document}
I had expected to see all elements in the second row (every first row
) as well as in column B
surrounded by square brackets.
Does postproc cell content
not work on a per row basis?