News for hackers. Stuff that matters.
Re:Tips and tricks to write LaTeX papers in with figures gen... by akshayn on Monday March 18, 2019 @06:45PM (#19426118)
> We also recommend to save the command used to generate a figure in the LaTeX file

An approach I have adopted recently is Knitr[1], so this layer of indirection goes away. With knitr, my data goes directly into the paper repository, and then my Makefile has something like this:

  %.tex: graphs/%.Rnw
    Rscript -e "library(knitr); knit('$?')"
The nice thing is exactly what the authors recommend: it's much easier to enforce a standard appearance across all the figures, and automatically incorporate more recent data into the paper as part of the compilation process.

[1] https://yihui.name/knitr/

Re:Tips and tricks to write LaTeX papers in with figures gen... by Wookai on Monday March 18, 2019 @08:19PM (#19426757)
Looks awesome, thanks for sharing!