Hi
It would be very nice if the cairolatex terminal had an option to generate both eps and pdf output at the same time (like the equivalent output in the drawing program xfig).
I am often in the situation that I both need to include the generated tex file in ordinary latex and in pdflatex (for e.g. generating eps and pdf final output files). In most cases I could use a replot after changing the terminal but if multiplot is in use this is not possible.
In recent TeXLive distributions (since 2010), the conversion of
eps
topdf
images is done on-the-fly if you compile withpdflatex
. So, the following should work fine (cannot test it at the moment):I'm not sure, if the
-shell-escape
option is mandatory in this case.Thanks for the quick reply.
I totally agree that the route you suggest works nicely.
However, my use case is a bit the opposite.
While preparing a series of figures for a publication I prefer to use pdflatex, which has much nicer looking transparent plots and allows for having all figures in one common document.
Now the journal which I am submitting to requires eps files.
I can of course convert the eps file to pdf by something like
pdftops -eps file.pdf file.eps
But this would not be done automatically.
So I still think it would be a nice/usefull feature to have the terminal directly generate the best quality output in the two formats.
Best
Bo
Have you tried my example? That would work fine in you case, because it generates eps files, which you can send to the journal. And for your compilation the conversion to pdf is done automatically if you're using TeXLive >= 2010.
Yes I totally agree with your solution the auto conversion works nicely.
However, I have transparent filledcurves plots (I can try to make a minimal example later), and the pdf output from cairolatex is nicer than the eps
therefore I prefer pdf output.
(as I understand eps does not allow natively for transparency, and pdf does)
I second this. Working with MiKTeX on windows, this would be a very nice feature.