I want to include a csv file as a table into my overleaf-document.
\documentclass[a4paper]{article}
\usepackage{csvsimple}
\csvautotabular{population.csv}
I have no idea, why it is not working. Does someone know ? ;-)
Suppose we have this external test.csv
file:
Lorem,Ipsum,Dolor,Sit,Amet
one,one,one,one,one
two,two,two,two,two
three,three,three,three,three
one,one,one,one,one
two,two,two,two,two
three,three,three,three,three
Then the following code
\documentclass{article}
\usepackage{csvsimple}
\begin{document}
\csvautotabular{test.csv}
\end{document}
will produce this:
\csvautotabular
must be used in the document body not in the preamblefilecontents
in the real life. It's mostly useful for producing minimal working examples.