On Wed, Apr 10, 2002 at 11:48:38AM +0200, Helge Hafting wrote:
 
> Math oddity 1:
> Typing 5^2 of 5_2 in math mode gives the expected result as always.
> The new improved math panel offers another way of creating
> exponents and subscripts, but with a small difference:
> 5^2 using the math panel instead of the "^" key gives me a
> black "2" instead of the usual math-blue "2" on screen.
> Using the "^" or "_" keys gives blue text as usual.
> 
> This isn't just a cosmetic thing, the numbers look 
> slightly different in Xdvi too.  
> This is most noticeable if writing 5_(3^2 +3^2)
> where only the second "2" is made using the math panel.
> This gives a smaller exponent font, and the second "2" is
> noticeable fatter in xdvi.  I couldn't see a clear
> difference on the laser printer though.
> Is this intentional, or a bug?  I guess the latter, as
> the user guide claims the two methods are the same.

Confirmed. The math panel exponent puts a \textrm around
the first "2". 

I don't know why, but the following patch fixes this:


Index: FormMathsPanel.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/xforms/FormMathsPanel.C,v
retrieving revision 1.25
diff -u -p -r1.25 FormMathsPanel.C
--- FormMathsPanel.C    2002/03/21 21:18:03     1.25
+++ FormMathsPanel.C    2002/04/10 14:32:18
@@ -321,12 +321,12 @@ bool FormMathsPanel::input(FL_OBJECT *, 
                break;
 
        case MM_SUPER:
-               lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
+               //lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
                lv_->getLyXFunc()->dispatch(LFUN_SUPERSCRIPT);
                break;
 
        case MM_SUB:
-               lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
+               //lv_->getLyXFunc()->dispatch(LFUN_MATH_MODE);
                lv_->getLyXFunc()->dispatch(LFUN_SUBSCRIPT);
                break;
 

I don't recommend it though as these statements were put there
for a reason. André do you have a better idea?

Martin

-- 
Martin Vermeer  [EMAIL PROTECTED]
Helsinki University of Technology 
Department of Surveying
P.O. Box 1200, FIN-02015 HUT, Finland
:wq

Attachment: msg36449/pgp00000.pgp
Description: PGP signature

Reply via email to