Re: Bug #12

2001-07-26 Thread Andre Poenitz
> 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. There is a simple explanation: If I really do not understand something after staring at it for a while (\approx `time drink -what beer -count 1`)

Re: Bug #12

2001-07-26 Thread Dekel Tsur
On Thu, Jul 26, 2001 at 06:24:29PM +0200, Andre Poenitz wrote: > > It doesn't I don't think. There's a bug in this area with latex > > round-trips, if we \protect the math then when we read it back in from > > the latex the \protect shows up as latex in the lyx doc, then exporting > > adds *anothe

Re: Bug #12

2001-07-26 Thread Dekel Tsur
On Thu, Jul 26, 2001 at 05:25:36PM +0200, Andre Poenitz wrote: > > We have. But the parser is still a bit messy, so my first quick shot at > > replacing \( \) by $ $ failed some time ago, so I reverted that part... > > Aehm... would it help, if I write \protect in front of \( and \) and ignore >

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> Or is the LyX file format for formula identical to Latex code? It should in theory. Andre' -- André Pönitz . [EMAIL PROTECTED]

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> Proposal: Replace all "\(" by "$" and the work is done. As I said, this is not done in five minutes. Andre' -- André Pönitz . [EMAIL PROTECTED]

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> It doesn't I don't think. There's a bug in this area with latex > round-trips, if we \protect the math then when we read it back in from > the latex the \protect shows up as latex in the lyx doc, then exporting > adds *another* \protect etc. Ignoring \protect when reading in is trivial. Andre'

Re: Bug #12

2001-07-26 Thread Michael Schmitt
Hmmm, why are you talking about the math parser? It is a problem of the latex export functionality. Or is the LyX file format for formula identical to Latex code? Michael -- == Michael Schmittphone:

Re: Bug #12

2001-07-26 Thread John Levon
On Thu, Jul 26, 2001 at 04:53:45PM +0100, Jules Bean wrote: > On Thu, Jul 26, 2001 at 05:55:23PM +0200, Michael Schmitt wrote: > > Learning by example: > > > > Correct output by LyX-1.1.6fix1: > > > > \caption{My math\protect\( _{i}\protect \)test}\end{figure}% > > > > Incorrect output

Re: Bug #12

2001-07-26 Thread Michael Schmitt
On Thu, 26 Jul 2001, Jules Bean wrote: > 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 > \('. In order to enlighten you I looke

Re: Bug #12

2001-07-26 Thread Jules Bean
On Thu, Jul 26, 2001 at 05:55:23PM +0200, Michael Schmitt wrote: > 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.

Re: Bug #12

2001-07-26 Thread Michael Schmitt
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 a

Re: Bug #12

2001-07-26 Thread Jules Bean
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. > >

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> We have. But the parser is still a bit messy, so my first quick shot at > replacing \( \) by $ $ failed some time ago, so I reverted that part... Aehm... would it help, if I write \protect in front of \( and \) and ignore it when reading in? Andre' -- André Pönitz ..

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> The problem is that CVS LyX doesn't put \protect before \( and \). > Haven't we agreed it is better to use $ $ instead of \( \) ? We have. But the parser is still a bit messy, so my first quick shot at replacing \( \) by $ $ failed some time ago, so I reverted that part... I do not think it w

Re: Bug #12

2001-07-26 Thread Andre Poenitz
> 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. I guess this has something to do with \protect and the 'fragile' option t

Re: Bug #12

2001-07-26 Thread Dekel Tsur
On Thu, Jul 26, 2001 at 05:04:32PM +0200, Michael Schmitt 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. The prob

Bug #12

2001-07-26 Thread Michael Schmitt
Hi, 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. Michael -- =