On Fri, Feb 14, 2003 at 12:41:51AM +0100, Pedro Tejedor wrote:
> if you use a math-macro in 1.1.6 it appears sometimes without its 
> brackets in 1.3.0, which surprisingly works sometimes. I have isolated a 
>  case where it doesn't work, with a calligraphic font. Attached is a 
> minimum 1.1.6 file. It doesn't happen with lyx 1.2.3

> \begin_preamble
> \newcommand{\bfmath}[1]{\mbox{\boldmath$#1$\unboldmath}}
> \let\newcommand=\providecommand
> \end_preamble

The problem is that the math parser does not know that \bfmath takes an
argument as it does not see the preamble (only math macros and what's in
lib/symbols). So it sees "\bfmath" and assumes it is a macro without
arguments, than sees the argument and drops the "superfluous" braces.

This is obviously a bug, but one that probably can't be fixed without
breaking other thing. If the braces were left in we'd end up with a lot of
really superflous braces in other places.

Try to move the macro definition from the preamble to a proper math macro
and parsing should be fine.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to