News for hackers. Stuff that matters.
Re:Tips and tricks to write LaTeX papers in with figures gen... by mlthoughts2018 on Monday March 18, 2019 @07:24PM (#19426366)
I also recommend separating repetitive parts of plot generating code into template files, such as with mako or jinja2, and then programmatically generate sequences of plots by first piping the data into the jinja2 template, and then using insert commands to insert it into a bigger tex document.

I found this helpful when writing a paper where the appendix needed over 35 different tables of regression results, all with the same format but populated with data from different subpopulations, which would need to be regenerated (including updated captions, etc.) any time data cleaning or methodology was changed.

Re:Tips and tricks to write LaTeX papers in with figures gen... by Wookai on Monday March 18, 2019 @08:22PM (#19426790)
That's a great point! Templates are a great tool to generate big tables from results, I usually do that for most of the results in my papers, makes it easier to have the odd copy/paste error. I might add this to the tips and tricks, thanks!