On Tue, Dec 10, 2002 at 06:02:18PM +0100, Jean-Marc Lasgouttes wrote:
> Andre> The minibuffer shows the "textrm" when the cursor passes over
> Andre> the "wrong" alpha.
> 
> Are you sure it does? I do not see it here.

Fairly sure...

> Andre> I could try to change the colour to black for fonts called
> Andre> text*, if that helps.
> 
> That would certainly be welcome.

Patch attached. It basically says "don't change the colour just because it
is a symbol, take the colour of the surroundings instead". Which gives now
blue or black \alphas depending on whether it is ordinary math or math
text.

Lars?

Andre'
Index: math_support.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_support.C,v
retrieving revision 1.63
diff -u -p -r1.63 math_support.C
--- math_support.C      9 Dec 2002 13:04:15 -0000       1.63
+++ math_support.C      10 Dec 2002 17:04:16 -0000
@@ -538,14 +538,14 @@ fontinfo fontinfos[] = {
        {"mathrm", LyXFont::ROMAN_FAMILY, inh_series, inh_shape, LColor::math},
        {"mathsf", LyXFont::SANS_FAMILY, inh_series, inh_shape, LColor::math},
        {"mathbb", LyXFont::MSB_FAMILY, inh_series, inh_shape, LColor::math},
-       {"cmex",   LyXFont::CMEX_FAMILY, inh_series, inh_shape, LColor::math},
-       {"cmm",    LyXFont::CMM_FAMILY, inh_series, inh_shape, LColor::math},
-       {"cmr",    LyXFont::CMR_FAMILY, inh_series, inh_shape, LColor::math},
-       {"cmsy",   LyXFont::CMSY_FAMILY, inh_series, inh_shape, LColor::math},
-       {"eufrak", LyXFont::EUFRAK_FAMILY, inh_series, inh_shape, LColor::math},
-       {"msa",    LyXFont::MSA_FAMILY, inh_series, inh_shape, LColor::math},
-       {"msb",    LyXFont::MSB_FAMILY, inh_series, inh_shape, LColor::math},
-       {"wasy",   LyXFont::WASY_FAMILY, inh_series, inh_shape, LColor::math},
+       {"cmex",   LyXFont::CMEX_FAMILY, inh_series, inh_shape, LColor::none},
+       {"cmm",    LyXFont::CMM_FAMILY, inh_series, inh_shape, LColor::none},
+       {"cmr",    LyXFont::CMR_FAMILY, inh_series, inh_shape, LColor::none},
+       {"cmsy",   LyXFont::CMSY_FAMILY, inh_series, inh_shape, LColor::none},
+       {"eufrak", LyXFont::EUFRAK_FAMILY, inh_series, inh_shape, LColor::none},
+       {"msa",    LyXFont::MSA_FAMILY, inh_series, inh_shape, LColor::none},
+       {"msb",    LyXFont::MSB_FAMILY, inh_series, inh_shape, LColor::none},
+       {"wasy",   LyXFont::WASY_FAMILY, inh_series, inh_shape, LColor::none},
        {"text",   inh_family, inh_series, inh_shape, LColor::black},
        {"textbf", inh_family, LyXFont::BOLD_SERIES, inh_shape, LColor::black},
        {"textit", inh_family, inh_series, LyXFont::ITALIC_SHAPE, LColor::black},

Reply via email to