The file I want to show is a .tsv file that I cannot edit. It looks like this:
up_gene up_chr up_strand up_Genome_pos
APLP2 chr11 + 129991686
BACE2 chr21 + 42617990
BRDT chr1 + 92470856
CTBS chr1 - 85028940
DHRS1 chr14 - 24761405
But when reading this I get a Missing $ inserted error. Minimal example:
\documentclass{article}
\usepackage{pgfplotstable}
% recommended:
\usepackage{booktabs}
\usepackage{array}
\usepackage{colortbl}
\begin{document}
\pgfplotstabletypeset[
every even row/.style={
before row={
\rowcolor[gray]{0.9}
}
},
every head row/.style={
before row=\toprule,
after row=\midrule
},
every last row/.style={
after row=\bottomrule
},
string type,
columns={up_gene,up_chr},
]
{results.tsv}
\end{document}
Which results in the error mentioned above, and this output:
So I have two questions:
- How can I avoid the error I get? Note that the same error arise even if I remove
columns={up_gene,up_chr} - How can I get the underscore in the header to show? I don't want to subscript the g in
up_gene.



columns/A_d/.style, withA_dexchanged for my header name, but I was not able to get it working. – L42 Apr 25 '16 at 12:47