Am Donnerstag, 16. Juni 2005 17:13 schrieb Angus Leeming:
> Georg Baum wrote:
> > Does the following work with the babel variant?
> > 
> > \mdqoff\includegraphics{"dir with spaces/picture with 
spaces".eps}\mdqon
> 
> This works perfectly.

Fine. The problem is of course that \mdqon and \mdqoff are only defined if 
babel with the german language is used. Since I don't know whether it is 
possible to query that information in InsetGraphics::latex(), and since " 
could be active for other reasons, I propose the following:

1. Define a new LaTeXFeature "lyxdq" that writes the following to the 
preamble:

\newcommand{\lyxdq}{"}

2. Change latex_path() to use \lyxdq instead of ". That works on my tetex 
3.0 system at home both for german documents and english documents. I 
don't understand why it works, but I guess it does on other recent tex 
distros, too. If it does not, could you please try whether

\chardef\lyxdqcatcode=\catcode`\"\catcode`\"=12\def\lyxdq{"}\catcode`\"=\lyxdqcatcode

works?

3. require "lyxdq" in the validate methods of the insets that use 
latex_path() if needed.

I'll implement the above for 1.3 and 1.4 if nobody finds a problem.


Georg


PS: I'll address the extension problem in a separate mail.

Reply via email to