Georg Baum wrote:
> 2. (insetexternal) The lines
> 
> ReferencedFile latex "$$AbsPath$$Basename.eps"
> ReferencedFile dvi "$$AbsPath$$Basename.eps"
> 
> in the template definition tell LyX that the file
> "$$AbsPath$$Basename.eps" will be created by the conversion process and
> will be needed by the exported document in the latex format or dvi
> format, respectively. The actual substitution values for the variables
> depend on the output format: If we export to latex ("nice" == true),
> we'll get a filename like /home/xyz/abc.eps. This is fine, because the
> export mechanism copies the file from the temp dir /home/xyz/abc.eps. If
> we export to dvi ("nice" == false), we'll get something
> like /tmp/lyx_tmpdir4821c1GcBU/lyx_tmpbuf0/1_home_xyz_abc.eps. This is
> wrong, it should be /home/xyz/1_home_xyz_abc.eps, i. e. the directory
> part needs to be the substituted with "nice" == true, and the filename
> with the actual "nice" value. Otherwise the file will not get copied. I
> did exactly that in the attached patch.

> Shall I apply the attached patch?

Urggghhhh. This stuff is always going to be difficult to follow. I guess
the fact that you've analysed the situation, above, means that you
understand the problem better than me ;-)

Anyway, the above description makes a lot of sense, even if my eyes glazed
over whilst reading the patch. I'd say go for it if Jürgen says it works
for him.

-- 
Angus

Reply via email to