Lee Yeoh wrote:
I had a bit more of a rummage around and I managed to export the relevant latex code for my document:

--- begin quote ---
\begin{floatingfigure}[r]{6cm}%
\includegraphics[width=0.4\columnwidth]{\string"Figures/Fluid mosaic model\string".jpg}


\caption{The fluid mosaic model of cell membranes}\end{floatingfigure}%
--- end quote ---

compared to the latex code for the "extended features" wrapped float

--- begin quote ---
\begin{floatingfigure}[r]{6cm}%
\includegraphics[width=0.4\columnwidth]{mobius}


\caption{This is a wrapped figure, and this is the brilliant caption that
describes it}\end{floatingfigure}%
--- end quote ---

The only difference appears to be the {\string"Figures/Fluid mosaic model\string".jpg} part. I tried numerous other methods, involving ERT, making the figure eps, and placing it in the same directory as the lyx file. When I used the last two methods together, the latex code was identical to the example, but still nothing in the export!!! Quite frustrating!


There's nothing visibly wrong with the argument \string"Figures/Fluid mosaic model\string".jpg, assuming that your image is named 'Fluid mosaic model.jpg' and lives in a folder named 'Figures' directly under the folder containing the LyX file.

When you say no image appears in the exported version ...

1. Do you mean an error message is produced (if so, what does it say?) or just that there's an empty space in the PDF file where the image should be? (You might have to look in the TeX log file to see if there's an error message.)

2. How are you doing the export: export to .tex and run pdflatex or something equivalent; export to PDF using the LyX File->Export menu (which method?); or View->PDF (again, which method)?

All else failing, can you post a minimal example (a LyX doc with just enough content to demonstrate the failure, and the required .jpg file).

/Paul

Reply via email to