# Problem using csvsimple with tab-delimited file

### The problem

I am having a problem reading tab-delimited files using csv-simple. My question is how do I fix it, and why is it occuring in the first place

### MWE

\documentclass[a4paper]{article}

\usepackage{csvsimple}
\usepackage[centering,margin=1in]{geometry}

\begin{filecontents*}{\jobname.csv}
abc def
fgh ijk
\end{filecontents*}

\begin{document}
\begin{tabbing}
\hspace*{2cm}\=\hspace*{2.5cm}\= \kill
\end{tabbing}
\end{document}


### Problem

! Undefined control sequence.
\meaning ->\csvcolii


### Update 1

So it was suggested that filecontents* does not preserve tabs. So I created a separate file with tabs, and updated my code.

Both of them are here: https://gist.github.com/deepakjois/7d70ef87b061c97f91e9

Now I am getting a really funny output, where the second column of the first row is repeating for all the rows.

• I think \meaning is a reserved LaTeX command. Shows you the content of a macro. – musicman Nov 26 '15 at 19:33
• Note that filecontents* doesn't output tab characters. – egreg Nov 26 '15 at 21:13
• @egreg You may be right. I edited the file and inserted my own tab character, but I am having some other problem. Let me update my question. – vyom Nov 27 '15 at 2:47

You can't use \meaning because it's a reserved command to print out a macros command, for example \meaning\csvreader.

I just can recommend you to always use individual prefixes for your macros.

MWE:

\documentclass[a4paper]{article}
\usepackage{csvsimple}
\usepackage[centering,margin=1in]{geometry}
\begin{document}

• I tried substituting \meaning to \mycsvmean, but it still does not work. Still gives the same error: ! Undefined control sequence.\mycsvmean ->\csvcolii – vyom Nov 27 '15 at 2:42