0

I'm looking for a simple way to have underscores in my column names with the pgfplotstable package.

Something like every head row/.style={string replace={_}{\_}} would be great to work.

MWE:

\documentclass{standalone}

\usepackage{pgfplotstable}
    \pgfplotsset{compat=1.18}

\pgfplotstableread{
capt1_i capt2_i led_o
0 1 1
0 1 0
1 0 0
1 1 1
}\mytable

\begin{document}

\pgfplotstabletypeset[
    % what I actually need to do for each column name individually
    columns/capt1_i/.style={column name=capt1\_i},
    columns/capt2_i/.style={column name=capt2\_i},
    columns/led_o/.style={column name=led\_o},
    %every head row/.style={string replace={_}{\_}}, % would be great to work instead...
]
{\mytable}

\end{document}

0

You must log in to answer this question.

Browse other questions tagged .