I have discovered during a lot of conversions from EPS to PDF files that the tool epstopdf included in tetex 2.0.2 uses a particular feature of ghostscript. GS tries to discover the paper orientation by looking the text orientation. In this way **some** PDF files get a wrong rotation respect the original EPS file. I have found these links where the problem is explained: http://lists.debian.org/debian-tetex-maint/2002/02/msg00013.html https://www.stat.math.ethz.ch/pipermail/r-devel/2003-October/027761.html One solution is to set the ghostscript option GS_OPTIONS="-dAutoRotatePages=/None". The other solution is to patch only the epstopdf executable: in this way the change stays local to one program. I have attached the patch for epstopdf. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created attachment 53555 [details, diff] epstopdf.patch
I am observing this behaviour, too; in fact this cost me several hours to pin down to epstopdf. The attached patch fixes the problem Fabio and I are observing, contains the necessary subdirectories for patching from src_unpack() without any hassle, and addresses another flaw in epstopdf that permits to convert files with whitespace in their names. Note that this is exactly the way the Debian people fix these problems; please add this patch to both 2.0.x and 3.0.x app-text/tetex releases, it's been ignored long enough.
Created attachment 73698 [details, diff] epstopdf.patch Patch that addresses both the described problem and the inability to handle filenames with whitespace in them.
In comment #2 it has to say "... another flaw in epstopdf that does NOT permit to convert files with whitespace in their names.", of course.
tetex-2 and 3 have been bumped to include the last patch. Thanks.