I want to put the content of a csv file in a tabular environment. However, this includes text with underscores "_". Because this triggers the math environment, it gives the error: Missing $ inserted.
Using escape underscore to show the actual text does not work, since then the csv reader does not work:
\documentclass{article}
\usepackage{csvsimple}
\usepackage{url}
\DeclareUrlCommand\UScore{\urlstyle{rm}}
% Make csv in question
\begin{filecontents*}{scientists3.csv}
name
Albert_Einstein,
Marie_Curie,
Thomas_Edison
\end{filecontents*}
\begin{document}
\csvreader[tabular=|l|,
table head=\textbf{ Reference} \\\hline,
late after line = \\\hline]%
{scientists3.csv}{name=\name}%
{\UScore{\name}}%
\end{document}
The result is obviously: "\name" instead of the content of the .csv file.
