I want to use the csv package to insert tables into my document. I am importing csv by using the \usepackage{csvsimple} command.

Then, in the code, I use \csvautotabular{Tables/test} to create the tables of a csv file with the following content:


However, when I click the PDFLatex button in Kile to generate the pdf file, I get the following errors:

enter image description here

What am I doing wrong? Is this package still working? Is there an easier/better way to download my csv tables from Google docs into latex?

  • Works fine here, can you create a complete example? Another package that can create tables from text files is pgfplotstable. – Torbjørn T. Mar 14 '14 at 23:45
  • What do the errors mean then? Can someone explain to me how I can fix them? I will look into that new package ! – Flame_Phoenix Mar 15 '14 at 1:32
  • 1
    I think it usually means that there is a line break (\\ or \newline) where it cannot occur. Again, can you create a complete example, a minimal (non)working example (MWE), if I do \documentclass{article} \usepackage{csvsimple} \begin{document} \csvautotabular{data.csv} \end{document} it works fine. – Torbjørn T. Mar 15 '14 at 13:15

After creating a MWE, and testing around I finally found the problem: this error occurs when csvsimple cannot find the specified file. Which is quite dumb imo. If you ask me newline errors have nothing to do with FileNotFoundExceptions...

  • Yep, not ideal. There is a warning that the file is not found, but that should probably be an error instead. You could send an email to the package author reporting this (the email address is probably found in the manual). – Torbjørn T. Mar 15 '14 at 20:46
  • Ok, I think this is the manual: ctan.mirrorcatalogs.com/macros/latex/contrib/csvsimple/… If I am correct this is the e-mail: thomas.sturm@unibw.de Trying doesn't hurt :D – Flame_Phoenix Mar 15 '14 at 22:52
  • Done. Just sent an e-mail to the creator with a link to this discussion ! – Flame_Phoenix Mar 17 '14 at 11:22
  • I've put implementing a warning or error message for missing csv files on my todo list ... – Thomas F. Sturm Mar 17 '14 at 11:49
  • The community appreciates :D – Flame_Phoenix Mar 17 '14 at 12:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.