I would like to place some LaTeX math code in the columns of a file to be read by pgfplotstable
. Unlike How to use underscores with pgfplotstable?, I would like the columns to be formatted so LaTeX will interpret the subscripts and symbols that it contains. For example, I have a data file that looks like:
{Time} {$\theta$} {Fit to $C_a \tan 3\theta$}
0 0.2 0.195
...
Every time I try to read a file like this with pgfplotstable
, I get an error:
! Missing \endcsname inserted. <to be read again> \mathop l.101 } ^^M
Is it possible to have the formatting embedded in the column headings of a data file? If so, how?
\pgfplotstabletypeset
, or as a legend in a PGFplots plot?