Georg Baum wrote: > I would revert the change mentioned above if André tells us that it is > possible.
I think the above is needed to produce colorboxes from the character dialog (?). > If that change is still needed and we know why we can probably > find a different solution, because $\textrm{some stuff}$ is perfectly legal > and should be allowed. Yes, but isn't the cause for this the partial disabling of font changes in MATH_MODE (in math_nestinset::getStatus)? When I reenable them (see attached patch), I can also restore the 1.3 script with command-sequence math-mode on; math-superscript ; math-insert \textrm ; Why have these changes been limited that way? Jürgen
Index: math_nestinset.C =================================================================== RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_nestinset.C,v retrieving revision 1.156 diff -u -r1.156 math_nestinset.C --- math_nestinset.C 17 Jun 2005 14:35:19 -0000 1.156 +++ math_nestinset.C 23 Jun 2005 17:52:04 -0000 @@ -923,8 +923,10 @@ case LFUN_MATH_NONUMBER: case LFUN_MATH_NUMBER: case LFUN_MATH_EXTERN: + case LFUN_INSERT_MATH: flag.enabled(true); break; +#if 0 case LFUN_INSERT_MATH: { bool const textarg = arg == "\\textbf" || arg == "\\textsf" || @@ -937,6 +939,7 @@ || (currentMode() == TEXT_MODE && textarg)); break; } +#endif case LFUN_INSERT_MATRIX: flag.enabled(currentMode() == MATH_MODE); break;