>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> On Fri, Feb 07, 2003 at 09:25:45AM -0200, Flavio de Melo Pereira
John> wrote:
>> Although LyX generates a DVI file that displays correctly using
>> KDVI, the references to figures in this file are generally
>> prepended by the path to the temporary directory which was being
>> used by the LyX file during the conversion, e.g., an included eps
>> file called xxx.eps may appear in the output DVI file as
>> 
>> /tmp/lyx_tmpdir38575VeOmD/lyx_tmpbuf0/_home_pereira_xxx.eps

John> confirmed in current lyx (you forgot to give lyx version)

There is not much we can do about it if one is using a temp dir.
Actually, we could make it work for the case of not using includes and
not using subdirs for images (a reasonably common case), but is it
worth the effort?

JMarc

John> I guess this code :

John>     747 // Make the filename relative to the lyx file 748 // and
John> remove the extension so the LaTeX will use whatever is 749 //
John> appropriate (when there are several versions in different
John> formats) 750 string const latex_str = message.empty() ? 751
John> (before + '{' + os::external_path(prepareFile(buf)) + '}' +
John> after) : 752 (before + '{' + params().filename + " not found!}"
John> + after); 753 os << latex_str;

John> isn't doing what it's supposed to. Can anyone help ?

So you mean you are really willing to know what this code does? You're
not afraid? I'll let you think more about it during the day and if
don't chicken out I will try to write something about it this evening.
It will be difficult to have multiple includes (bug 605, for example),
html exports (bug 643) and things like this one to work.

JMarc

Reply via email to