On Wed, Nov 17, 1999 at 05:12:31PM +0100, Jean-Marc Lasgouttes wrote:
> >>>>> "Peter" == Peter Drummond <[EMAIL PROTECTED]> writes:
>
> Peter> If I try to import the new OSAmtg.tex template into Lyx (to
> Peter> make an abstract for the meetings next year), Relyx will exit
> Peter> with a fatal error. I use version 1.04. The special OSAmeet.sty
> Peter> file was downloaded into the same directory as OSAmtg.tex, if
> Peter> this is a relevant issue. Ordinary Latex is not troubled with
> Peter> these files.
>
> I'll leave this to Amir ;)
Sorry I didn't answer this earlier. The strange thing is that when I ran
reLyX on it, it worked just fine. Could you send me the output of reLyX -d?
> Peter> (1) If you have a citation label like {a_b} in a Latex file,
> Peter> Relyx will occasionally change it to {a_{b}}. But this is not
> Peter> done consistently, so the result is a broken citation. Really,
> Peter> Relyx should not change the labels, as they are not syntax.
>
> This is a difficult problem, mentionned in reLyX bugs list. I'm not
> sure it will be fixed soon.
To expand on this a bit, allow me to quote one of the icons of our age:
"math is hard." (Barbie) We have to add braces around the arguments to _ in
math equations or LyX can't read in math. (This has generated a bunch of
problems; for example, the a_b_c issue.) Adding that breaks \cite{a_b}. So I
added a fix so that inside \cite, the braces get ignored. This fixes \cite
and \label outside of math, as well as the very common \include{foo_bar}.
Unfortunately, it breaks \label in math mode, which I recognize is pretty
common. It might be possible to change the part of reLyX that adds the
braces (CleanTeX.pm) so that it doesn't add them in the first place inside
certain commands, like \label etc. However, that may break other things. And
I haven't got much time to work on reLyX these days anyway.
> Peter> (2) If you import/export/import/export Latex (for example, to
> Peter> exchange files with nonLyxers), then you often build up a lot
> Peter> of unwanted frontmatter. Eventually this breaks the Latex
> Peter> compiler. It would be nice if repeated import/export would
> Peter> reach an unchanging, steady state!
>
> On the todo list.
Yes, it's a problem. You can delete the few extra lines in the exported
latex file. Yes, this is annoying. Sorry.
-Amir