Uwe Stöhr <[EMAIL PROTECTED]> writes: > Many thanks Enrico, this fixes the problem. I tested this with all > possible babel languages and it works, except for turkish. The turkish > language problem is bug 2005: > > http://bugzilla.lyx.org/show_bug.cgi?id=2005 > > So perhaps you and/or Herbert Voss have an idea how to fix it also for > turkish.
This is harder to fix because here '=' is made active and it does not appear in the filename but in the optional arguments of \includegraphics. Jean-Marc already mentioned possible fixes in comment #5 to bug 2005. The easiest one is probably surrounding the image included in LyX with \shorthandoff{=} and \shorthandon{=}, i.e., something like this: \shorthandoff{=} <- in ERT <included image here> \shorthandon{=} <- in ERT It is also difficult to redefine \includegraphics in order to automatically perform the trick, due to the way it is defined in LaTeX. However, I think that this could be done by LyX. It should take into account what characters are used as shorthands in a given language and then surround the includegraphics with \shorthandoff{...} and \shorthandon{...} where "..." is the list of shorthand characters. -- Enrico