Nirmal Govind wrote:
> Hi... I have a figure float in my document and this float is
> commented... so it doesn't show up in the ouput.. but when LyX tries
> to view pdflatex then it tries to convert this eps figure to pdf and
> gives me an error saying epstopdf couldn't convert the eps to pdf..
> this file was created in Adobe Illustrator and for some reason
> epstopdf can't convert it to pdf (and hence I get the error) but the
> question is - should LyX *try* to convert this figure which is in a
> comment? The pdf output shows up fine though (w/o the figure i.e.)
> so that's not a problem, just that the error box pops up... I'm not
> sure if this can be called a bug or if this is something
> intentional...
Sounds like a bug to me.
When you mean "comment", do you mean that the latex file contains
%% This is the code in a comment
%% with a \includegraphics{foobar}
rather than just a LyX-note that outputs nothing at all?
The long-term fix is to separate the generation of these figures from
the output of the Latex code (To use the current terminology,
two-phase export). Maybe the short-term fix is just to add an extra
'bool perform_conversion' to LatexRunParams?
Could you file a bug report?
--
Angus