Hello,

The bug is in lyx_func.C (patch at the end of this message), where
insetinclude was changed to get the command name as a parameter (rather
than being hard-coded). (lyx_func.C rev. 1.113, insetinclude.C rev 1.37)

Lior.

On Thu, 18 Jan 2001, ben wrote:

> Hello,
> 
> I've seen the following problem in lyx-1.1.6: when I include a lyx file
> into another lyx file, the latex compilation fails because the
> translation is:
> 
> \Include{the_subfile}
> 
> instead of:
> 
> \include{the_subfile}
> 
> Of course putting \def\Include#1{\include{#1}} in the pramble makes it
> work, but it is a temporary fix.
> 
> Bye,
> BG
> 
> 

Index: lyxfunc.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxfunc.C,v
retrieving revision 1.177
diff -u -r1.177 lyxfunc.C
--- lyxfunc.C   2001/01/15 18:54:29     1.177
+++ lyxfunc.C   2001/01/18 22:39:00
@@ -2751,7 +2751,7 @@
 
        case LFUN_CHILDINSERT:
        {
-               InsetCommandParams p( "Include", argument );
+               InsetCommandParams p( "include", argument );
                Inset * inset = new InsetInclude(p, *owner->buffer());
                if (owner->view()->insertInset(inset, "Standard", true))
                        inset->Edit(owner->view(), 0, 0, 0);

Reply via email to