Search code examples
mathmathml

jEuclid: how to show bar in formula with subscript


In case of mathml:

<math> 
   <mrow> 
    <mover accent="true"> 
     <mrow> 
      <mi> x </mi> 
      <mo> + </mo> 
      <mi> y </mi> 
      <mo> + </mo> 
      <mi> z </mi> 
     </mrow> 
     <mo>¯</mo> 
    </mover> 
   </mrow> 
</math>

jEuclid shows bar over whole formula: enter image description here and it's ok.

But if I add subscript text:

<math> 
  <msub>
   <mrow> 
    <mover accent="true"> 
     <mrow> 
      <mi> x </mi> 
      <mo> + </mo> 
      <mi> y </mi> 
      <mo> + </mo> 
      <mi> z </mi> 
     </mrow> 
     <mo>¯</mo> 
    </mover> 
   </mrow> 
   <mrow>
   <mtext>v</mtext>
  </mrow>
 </msub>
</math>

jEuclid shows bar above y and in small font size: enter image description here

Is is a jEuclid bug? Is there a workaround solution for this?


Solution

  • I've found a workaround solution - first mrow should be enclosed in mstyle:

    <math>
     <msub>
      <mstyle>
       <mrow>
        <mover accent="true">
         <mrow>
          <mi> x </mi>
          <mo> + </mo>
          <mi> y </mi>
          <mo> + </mo>
          <mi> z </mi>
         </mrow>
         <mo>¯</mo>
        </mover>
       </mrow>
      </mstyle>
      <mrow>
       <mtext>v</mtext>
      </mrow>
     </msub>
    </math>
    

    The equation displays as expected: enter image description here