I have a file called "test,abc.csv" and I would like to use csvsimple to display this table.
\documentclass{article}
\usepackage{csvsimple}
\begin{document}
\begin{table}
\csvautotabular[respect all]{test,abc.csv}
\end{table}
\end{document}
It gives me an pgfkeys error
Package pgfkeys Error: I do not know the key '/csv/abc.csv' and I am going to ignore it. Perhaps you misspelled it. \csvautotabular[respect all]{test,abc.csv}
Is there any way to solve this problem without changing the file name?
I have tried bracket, braces or quotes on the file names but none of them works.
(The reason why I don't change the file name directly is that I am writing a script to automatically display a list of tables from another database, where many file names contain comma. These tables are already linked to some other stuff, so changing the file names could lead to errors)
test_abc.csv. – Zarko Mar 05 '23 at 02:47csvsimplepackage does some processing on the file name that breaks when it has a comma. While there probably is some workaround (e.g. something like "if you wrap the file name in exactly 5 layers of braces it will happen to work") (try different number of layers of braces, I haven't tested), it's quite fragile, so I think a reasonable compromise is to use LaTeX to copy the file to another file name that does not have comma then read that file withcsvsimplepackage – user202729 Mar 05 '23 at 07:54csvsimplepackage maintainer. – user202729 Mar 05 '23 at 07:55*.csvfile to be read in atexfile indicates you do export those tables to a comma delimited file. So IMHO there are two options: either rename directly when exporting or - as those*.csvfiles seem to be used elsewhere in that comma containing name format - add a copy / rename routine to your script. Use the renamed files as input in yourtexfile. You are writing a script anyway, so why not add that routine? – alchemist Mar 05 '23 at 09:34