On Thu, 26 Jul 2001, Jules Bean wrote:

> On Thu, Jul 26, 2001 at 05:21:18PM +0200, Andre Poenitz wrote:
> > > adding some math code in a figure caption breaks LyX' latex output if your
> > > documents includes a table of figures (see tiny example file). Note: This
> > > worked about three weeks ago - AFAIK it's not a limitation of Latex.
> >
> Most fragile commands can be made robust (the opposite!) by preceding
> them with \protect.  This isn't 100% though, I don't think.  \protect
> \( does work, I believe, but $ is the preferred solution for a 'robust
> \('.

Learning by example:

  Correct output by LyX-1.1.6fix1:

    \caption{My math\protect\( _{i}\protect \)test}\end{figure}%

  Incorrect output by LyX cvs:

    caption{My math\(_{i}\)test}\end{figure}%

LyX-1.1.6fix1 adds these \protect statements only inside of captions (and
maybe some other critical constructs) but not to formula in common text.

Michael

-- 
======================================================================
Michael Schmitt                            phone:     +49 451 500 3725
Institute for Telematics                   secretary: +49 451 500 3721
Medical University of Luebeck              fax:       +49 451 500 3722
Ratzeburger Allee 160              eMail: [EMAIL PROTECTED]
D-23538 Luebeck, Germany           WWW:   http://www.itm.mu-luebeck.de
======================================================================

Reply via email to