prev  ( testsuite > Presentation > TokenElements > mo > moAaccent10  )  next

Alternatives: (mml file)  (full) (simple) (plain) (form) (slideshow)
File:Presentation/TokenElements/mo/moAaccent10
CVS-ID:
Author:Robert Miner and Jeff Schaefer, Geometry Technologies
Description:This example tests the interaction of the 'accent' attribute for <mover> and <mo>. In particular, it tests that when the attribute is set on the enclosing <mover>, it overrides the value set on an operator in the second slot, whether computed or explicitly set. It also tests whether there are any unwanted side effects from setting the 'accent' attribute on an <mo> outside the scope of a scripting schema.

Sample Rendering:

Created by: webeq

Your browser's rendering:

G - 1 + G - 1 + G - 1

Source Code:

<math xmlns="http://www.w3.org/1998/Math/MathML"> 
  <mrow> 
    <mover> 
      <mrow> 
        <mi>G</mi> 
        <mo>-</mo> 
        <mn>1</mn> 
      </mrow> 
      <mo accent="false">&#x203E;</mo> 
    </mover> 
    <mo accent="false">+</mo> 
    <mover accent="true"> 
      <mrow> 
        <mi>G</mi> 
        <mo>-</mo> 
        <mn>1</mn> 
      </mrow> 
      <mo accent="false">&#x203E;</mo> 
    </mover> 
    <mo accent="true">+</mo> 
    <mover accent="false"> 
      <mrow> 
        <mi>G</mi> 
        <mo>-</mo> 
        <mn>1</mn> 
      </mrow> 
      <mo accent="false">&#x203E;</mo> 
    </mover> 
  </mrow> 
</math>