When adding graphics to a LyX document, LyX seems to automagically export the 
files
to a temporary directory, together with the generated .tex file. This solves the
problem of having spaces in graphics file paths -- the whole path gets 
separators
such as '/' and ' ' replaced with '_'. This is the desired behavior.

Now I'm trying to add graphics to the page header in the document preamble, and 
I'd
like to be able somehow to refer to the graphics file exported by LyX. What I 
need
is a way of knowing that file foo.eps got exported as baz_bar_foo.eps to the 
temp
directory.

This also applies to not being able to, say, have an \includegraphics{foo} in a 
LaTeX
inset: LyX only processes graphics insets when exporting files, it does not 
detect
manually inserted \includegraphics.

A solution to my problem would be either:
1. how to "predict" (perhaps LyX could insert a macro for each exported file?)
exported graphics file's name.
2. how to force LyX to automagically process \includegraphics{} in LaTeX insets,
document preamble, etc.

It took me a while to understand where the problem was, since I could have two
identical \includegraphics{foo} in the LaTeX source preview within LyX: the one
coming from the graphics inset would correctly show the graphics, while the one
coming from a LaTeX inset would display nothing.

Perhaps this should be reported as a bug?

Cheers, Kuba

Reply via email to