![]() |
Personal Information
|
Tips [] |
EPS to png with convert [] |
To convert all the .eps files one have on ones folder, one can use the following bash inline script
for fig in *.eps; do
convert +antialias -density 300 -depth 16 -transparent white $fig `basename $fig .eps`.png;
done;
Check Bash and Convert pages. |
LaTeX with Nath [] |
Nath is a great package to LaTeX.
Nath stands for Natural Math.
With this package one can abstract oneself from the parenthesis matching the formulas height, since Nath adapts the parenthesis size automatically so it fits the formula.
Unfortunately, the package revtex4 does not seem to render well with Nath.
|
GnuPlot and LaTeX [] |
In order to have pretty consistent fonts between plots and the whole document one can use the terminal epslatex in gnuplot.
This terminal exports a .tex file and a .eps file. Include the .tex in the LaTeX document using \input{...}. One should take some care with folder paths since the gnuplot generated .tex assumes you are in the same path that was used when it was generated. What I've learned to be the best is to always generate the plots from within their folder and use gin key from graphicx package to set the path. I will put some examples soon. |