The following MWE creates a simple little table with pgfplotstable
and works fine:
\documentclass{standalone}
\usepackage{pgfplotstable}
\pgfplotsset{compat = 1.16}
\begin{document}
\pgfplotstabletypeset[
col sep=comma,
columns/Parameter/.style={string type}
]{
Parameter, no. 1, no. 2
A, 100,100
B,100,100
}
\end{document}
I wanted to use '#1', '#2', etc. in the header instead of 'no. 1', 'no. 2', etc. But as soon as I type \#
in the header row (or the body of the table for that matter) I get 22 errors insisting that The control sequence marked <to be read again> should not appear between \csname and \endcsname
.
Is there a way to make this work?
\#
is a command that takes a character of the current font and puts it on paper, so it's not valid where TeX expects simple characters. Try\edef\hash{\string#}
and thenParameter, \hash1, \hash2
.