Michael Schmitt <[EMAIL PROTECTED]> writes:

> 
> > The new teTeX 3.0 has a way (or two) to handle spaces. Something like
> >    \include{"My Files"}
> >
> > So probably we should drop all safety checks concerning this and just
> > include the quotes whenever LyX creates such a TeX command.
> 
> That is not enough; see the following snippet from the MikTeX documentation 
> given below.

Mmmph. I only read the teTeX-documentation for \input and thought it would
be the same for \include. Sorry about that.

> Things get a little bit complicated if you want to use the LaTeX primitive 
> \include. You have to write something like the following:
> 
> \include{"extra\space long\space file\space name"} 

That still should be doable, eg. in insetinclude.C:

                // \include don't want extension and demands that the
                // file really have .tex
                string quoted = ChangeExtension(incfile, string());
                if (quoted.contains(" ")) {
                    quoted = "\"" + quoted + "\""";
                    quoted = subst(quoted, " ", "\\space ");
                }
                os << '\\' << params_.getCmdName() << '{'
                   << quoted
                   << '}';

Probably the same for includegraphics? tex2lyx, externaltemplates?
Any more?

Ciao
/Andreas

Reply via email to