I'm writing my first paper in Overleaf instead of Markdown and struggling with how to insert data programmatically. I have a table of data that gets frequently updated that I want to display in the text. I'm willing to re-upload the .csv to Overleaf every time it gets changed, but I'd strongly prefer to not hard-code the table any further, since it will make it really difficult to update in the future. How do I get Overleaf to render the .csv as a simple in-text Latex table with a caption?
I tried applying readcsv not working as follows:
\usepackage{csvsimple}
\begin{tabular}
\csvreader{best_drm_table.csv}
\end{tabular}
And got a huge number of errors, including this one, probably the most informative:
l.282 \csvreader
{best_drm_table.csv}
If you say, e.g., `\def\a1{...}', then you must always
put `1' after `\a', since control sequence names are
made up of letters only. The macro here has not been
followed by the required stuff, so I'm ignoring it.
.Rtexinstead of .Rnw in Overleaf. – Fran Feb 23 '24 at 01:36csvsimpleand thepgfplotstablepackages (among others) that can do such things (the latter might be a bit overkill though). For more detailed help, you should provide some minimal working example. – Jasper Habicht Feb 23 '24 at 12:46