I'm trying to create a Latex table from a CSV string. I saw a similar question , after which I started playing around with the csvsimple package (manual).
What I don't understand is the need for filecontents. When something like
\usepackage{csvsimple}
\usepackage{filecontents}
\begin{filecontents*}{example.csv}
foo,bar,baz
zip,boom,bang
\end{filecontents*}
\csvautotabular{example.csv}
is run, this creates a file on disk called example.csv. Is there a way to parse CSV from the string itself?
\csvautotabular{\mymacro}
doesnt fly either.
filecontentsenvironment to parse CSV files. Thefilecontentsis only used to show the example. – Leo Liu Sep 23 '14 at 15:40\mymacro? – egreg Sep 23 '14 at 16:39\mymacrowould have just expanded to a comma-separated string, e.g.a,b,c,d. In any case, this seems to be a limitation of csvsimple, so for now I explicitly made files for all my csv strings. – icy Sep 23 '14 at 20:56