----- Original Message ----- From: "Bennett Helm" <[EMAIL PROTECTED]>
To: "Marc D." <[EMAIL PROTECTED]>; "LyX Users' Forum" <lyx-users@lists.lyx.org>
Sent: Monday, January 23, 2006 8:03 PM
Subject: Re: blank images in preview (Lyx 1.3.7, MacOSX 10.4.4)


On Jan 23, 2006, at 7:58 PM, Marc D. wrote:

The problem is that although I can see the included images
in the LyX screen, I cannot see the images when I select
View --> PDF (pdflatex). I can't even get Preview to show
anything if I pick the other two options (dvidpdm and 'ps to pdf').
With pdflatex, the PDF comes up, the text is there, but the images
are not. The space they should occupy is just blank.
I get the same behaviour with TeXshop after I convert my LyX to
laTeX, so I'm guessing I have something misconfigured somewhere,
but WHAT???

This is a known problem. See <http://bugzilla.lyx.org/show_bug.cgi? id=2127>. I've done some more investigating and reported the results there. Please add to the bug report any comments you might have that differ from what is already reported.

The workaround for me is to use View -> PDF (ps to pdf) rather than View -> PDF (pdflatex) or View -> dvipdfm. Or you could export to latex, and run latex (or pdflatex) manually from the terminal.

Bennett



I used the TexLive2005 cd to test the Windows version found
in /Win32. I think the error I experienced and the fix may be
related to the bug filed on this issue, 2127.

------------------------------------------------------

SH wrote: I use sample.tex (c:\texmf\doc\dvipdfm\sample.tex) to
test functionality, as this file is intended for that purpose.
Win32 (xemtex variant) fails to display the .eps graphics included
in sample.tex.
---------------------------------------

Dan Luecking replied:

"The (dvipdfm problem) never hit me because I always convert eps
to pdf manually, using tools that produce PDF version 1.3 or less.

The eps to pdf conversion does fail out of the box, but that seems to
be because dvipdfm can't take PDF higher than version 1.3. One needs
to change the config file so that the eps to pdf conversion process
(the line beginning with D) produces version 1.3 or lower. I use
 D "epstopdf --outfile=%o --nocompress %i"
in config and edit epstopdf.pl (which produces 1.4 by default on my
system). Instead of editing epstopdf.pl, one could
 set GS_OPTIONS=-dCompatibilityLevel=1.2
on the command line or use a gs command in config that sets the level:
 D "gswin32c.exe -q -sPAPERSIZE=letter -sDEVICE=pdfwrite
-dCompatibilityLevel=1.2 -dUseFlateCompression=true -dNOPAUSE
-sOutputFile=%o %i -c quit"
(all on one line). Problems can occur "out of the box" because the
out-of-the-box config file has incorrect quoting for windows. The
config-win provided (copy it to config) uses epstopdf. Using dvipdfm's
-vv option quickly showed me where the problem lied (in the pdf
version produced by epstopdf).

I remove quoting around the file names (%o and %i) in config's D
option, and never use filenames or paths with spaces in them."
----------------------------------------------------------------------------------

SH: I am not sure this diagnosis totally agrees with this post:
-----------------------------------------------------------------------------

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg83472.html
"In teTeX 1.0 you obtain the same error but with <1.4> replaced by <1.2>.
This means that when you include an eps file in LyX and do View->PDF
(pdflatex) it succeeds with teTeX 2.0 but fails with teTeX 1.0 if ps2pdf13
is used."
--------------------------------------------------------------------------

http://web.mit.edu/ghostscript/www/Ps2pdf.htm
"ps2pdf12 will always produce PDF 1.2 output (Acrobat 3-and-later compatible). ps2pdf13 will always produce PDF 1.3 output (Acrobat 4-and-later compatible). ps2pdf14 will always produce PDF 1.4 output (Acrobat 5-and-later compatible). ps2pdf per se currently produces PDF 1.2 output (Acrobat 3-and-later compatible).
However, this may change in the future. If you care about the compatibility
level of the output, use ps2pdf12, ps2pdf13, or ps2pdf14, or use the
-dCompatibilityLevel=1.x switch in the command line."
-----------------------------------------------------------------------------

SH: This was the reason (even if wrong_ why I suggested he upgrade
his versionof Acrobat Reader to 7.0 and use it for file formats in LyX.

Regards,
Stephen







Reply via email to