I like to print a list of names and email addresses in LaTeX.
These come from a CSV file and I read it with csvsimple package.
A problem arised with email addresses like foo_bar@foo.bar... (underscore)...
If I have the address in a variable like \email, I get en error "missing $ inserted" and it won't compile...
Is there a way to escape all special characters in a variable?
The code of the line looks like this:
\href{mailto:\emaili}{\emaili}\newline
Thank you very much for your help. Daniel.