Hello all, I've got a report on a strange behaviour of textstyle-update in LyX 2.4.0. If I select a character (say a) in math equation, then execute textstyle-update color 3 in LyX 2.3 is simply turned the character into blue, and in th LaTeX source I see {\color{blue}a} as expected, but with LyX 2.4.0 the character is also turning upright instead of staying italic, and the LaTeX source shows
{\color{blue}{\normalsize \mathrm{\mathrm{\mathrm{a}}}}} which is probably undesired. To me, it looks like the text in equations does not update any parameters of the current font. The changes in the LaTeX source can be explained by 58103cf, but this commit is not the fault, it just worsen the symptoms. You can see that in LyX 2.3 with colors, as this is a parameter math knew about then. If I create a blue character then select it and execute textstyle-update series bold, the character is turned black and the LaTeX source has an undesired \normalcolor. Should the font parameters be tracked in equations? I would expect the default shape would be italic in an equation. Another problem with 58103cf is that \mathrm does not only change the font family, but the shape as well, so I'm not sure it should be used as it is being used now... Somewhat but not entirely related to that, if I execute textstyle-update shape up, LyX crash and I get a segmentation fault in 2.3.7, and "Exception: basic_string::_M_construct null not valid" on LyX 2.4 and master. Udi
-- lyx-devel mailing list lyx-devel@lists.lyx.org http://lists.lyx.org/mailman/listinfo/lyx-devel