>>Date: Mon, 29 May 2006 20:49:49 -0500
>>From: "Paul Johnson" <[EMAIL PROTECTED]>
>>To: lyx-users@lists.lyx.org
>>Subject: Trouble with eps inclusions in lyx-1.4.1
>>
>>I just ran into a really weird lyx problem on Fedora Core 5 and
>>tetex-3.0-19.  It is so interesting I want to share and ask for help:
>>
>>http://pj.freefaculty.org/latex/weirdRotations-lyx.tar.gz

[description of undesired behaviour]
>>
>>If you would please download this and test it out, I would be glad to
>>hear if you see the same troubles.  Because a lot of my work depends
>>on being able to create pdf files that are accurate representations of
>>the dvi/ps files that LyX creates.

I can confirm the behaviour with ps, pdf obtained through ps2pdf and
direct compilation with pdflatex.

dvipdfm simply does not include figures (I guess it's a known bug,
from the messages in the calling shell I see it looks for .eps.Z extensions
for the files).

In addition, the tex2pdf compilation gets a correct result (I mean, similar to 
the dvi layout).

Here are the amendments I can suggest:
 * the ps2pdf path is simply corrected by adding the -dAutoRotatePages=/None
modifier to the ps2pdf converter (ps2pdf13 here);

 * the trouble with the direct pdf path comes from the fact that lyx uses 
ps2pdf13 to convert eps files which
 are condidered as PS (instead of EPS) because of the first line which is 
incomplete (see bug 2612).
->head -1 *.eps
==> test1-big.eps <==
%!PS-Adobe-3.0

==> test1-bighor.eps <==
%!PS-Adobe-3.0 EPSF-3.0

==> test1-small.eps <==
%!PS-Adobe-3.0

so that the conversions read:
->lyx -dbg files -e pdf2 weirdRotations.lyx
Setting debug level to files
[...]
Converting from  ps to pdf
Calling ps2pdf13 '0_tmp_weirdRotations_test1-small.eps'
[...]
Converting from  ps to pdf
Calling ps2pdf13 '1_tmp_weirdRotations_test1-big.eps'
Converting from  eps to pdf
Calling /usr/local/TeX/bin/sparc-solaris/epstopdf 
--outfile='2_tmp_weirdRotations_test1-bighor.pdf' 
'2_tmp_weirdRotations_test1-bighor.eps'
Converting from  latex to pdf2

So the pdf produced for the first two images has been autorotated. I guess the 
PDF Mediabox is
incorrect as well.
 
As eps2pdf includes the -dAutoRotatePages=/None modifier, the best way seems to 
use 
Rolans Bless' ps2eps filter to normalize your epses.
You might use alse tex2pdf, which uses epstopdf to create the pdf files (add a 
converter to pdf in the
preferences).

May be bug 2612 could be reopened to force use of epstopdf if the extension is 
eps, regardless of the
first line of the file (od testing existence od a BB).

HTH

-- 
Jean-Pierre



Reply via email to