On Fri, Oct 19, 2007 at 02:32:27PM +0200, Jean-Marc Lasgouttes wrote:
> Enrico Forestieri <[EMAIL PROTECTED]> writes:
> 
> > Moreover, \index is fragile, so any fragile command appearing in its
> > argument must be protected. That is to say that
> >
> > \index{Bibliography ! Bib\TeX}
> >
> > doesn't work, but
> >
> > \index{Bibliography ! Bib\protect\TeX}
> >
> > does work.
> 
> This is easy to fix, then. 

I actually played around with this. Yes, works in principle, but...
 
> 1/ add protect to \TeX when needed.

What does "when needed" mean concretely? I added \protect 
unconditionally to the \LyX etc. definitions, and it works,
but is overkill. How would you do it?

> 2/ mark that index is a moving argument.

Tried that too, by adding runparms.moving_arg = true to
the InsetIndex's ::latex() (before the InsetCollapsable latex
call), but no luck. (Is this the right way? Groping in the 
dark)
 
> JMarc

- Martin

Reply via email to