An interesting tip, never thought of that! It changes the way you write a bit, but it does make finding changes easier, finding errors easier, and forces you to think more about each sentence since you have to hit "enter" at the end of each one.
Tips and tricks to write LaTeX papers in with figures generated in Python
11–20 of 68 posts
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#12One itch which (curiously) I can't seem to quite scratch in LaTeX is that it should be possible to say "plot equation \ref{eq:smth} for X in (-4,4)" and just get the bloody graph. Why should I need to define the equation again in a separate place, perhaps even in a separate file?
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#13Earlier quoted context omitted.
Would you suggest an alternative to pyplot? What problems does it cause for you?
I had problems using pyplot over ssh because it can assume there's a display and fail when it couldn't find one. Maybe this has changed. I use the OO interface. For example https://matplotlib.org/gallery/api/agg_oo_sgskip.html
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
https://stackoverflow.com/questions/2801882/generating-a-png...Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#14> When writing LaTeX documents, put one sentence per line in your source file. An interesting tip, never thought of that! It changes the way you write a bit, but it does make finding changes easier, finding errors easier, and forces you to think more about each sentence since you have to hit "enter" at the end of each one.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#15Please stop using the awful Computer Modern typeface.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#16Meta: there seems to be an extra "in" in the title, that makes no sense to me, at least. Not a native speaker, though.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#17Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#18I have one tip for anyone using LaTeX: Please stop using the awful Computer Modern typeface.
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#19> 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 enforc…
Re: Tips and tricks to write LaTeX papers in with figures generated in Python
#20> When writing LaTeX documents, put one sentence per line in your source file. An interesting tip, never thought of that! It changes the way you write a bit, but it does make finding changes easier, finding errors easier, and forces you to think more about each sentence since you have to hit "enter" at the end of each one.