I tried to integrate an eps in lyx. The eps is shown correctly, but cannot be converted into pdf or dvi. After looking into the code lyx produces and comparing it with the original lyx handbook (the parts where eps are implemented), I found differences:
The following is original Latex code from the lyx handbook:
% \begin{figure}[htbp] \begin{center}\includegraphics{escher-lsd.eps}\end{center} \caption{What a beautiful trip!} \end{figure} #############
This is what lyx produces in Latex:
% \begin{figure} \caption{\includegraphics{file.eps}} \end{figure} #############
Latex shows the following two error messages:
(1)
Paragraph ended before [EMAIL PROTECTED] was complete. ...2/lyx_tmpbuf0/_lyx_Diagramm_Gesamtarbeit}}
I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best.
bzw. (2)
Argument of [EMAIL PROTECTED] has an extra }. ...2/lyx_tmpbuf0/_lyx_Diagramm_Gesamtarbeit}}
I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away.
##############
The Lyx Code looks like the following in the Lyx handbook:
\begin_inset Float figure placement htbp wide false collapsed false \layout Caption \begin_inset LatexCommand \label{fig:escher} \end_inset M.C. Escher on acid. \layout Standard \align center \begin_inset Graphics filename escher-lsd.eps display color rotateOrigin center \end_inset \end_inset
## and that is what Lyx produced as Lyx code:
\begin_inset Float figure wide false collapsed true \layout Caption \begin_inset Graphics filename Diagramm_Gesamtarbeit.eps \end_inset \end_inset
It seems that the \includegraphics and \caption are intertwined and this results in the problems. Does anybody has any idea why this happens ?
Is this a bug or some maloperation ?
thx!
best greetings,
leo
/Germany/