<< Chapter < Page Chapter >> Page >

Summary

In this tutorial we entered the quadratic equation entirely through the keyboard. We used the Tab and arrow keys to navigate through math content, the Return key to convert input text into math, and Ctrl+C and Ctrl+V to copy and paste both within the editor and between the editor and the main module editor.

Next, we will do the same example using the mouse and toolbar.

Method 2: toolbar

This method requires a bit more time because we will need to click the toolbar for every character (like "+", "*", or "/" in the previous method). Instead of doing the entire equation, this tutorial will step through creating only part of it: b b 2 4 a c 2 a

  1. Start off with a blank editor.
  2. Click the "Arithmetic" category in the toolbar.
  3. Click the "Divide" operation in the menu.
  4. Click the top empty block (numerator).
  5. Click the "Arithmetic" category in the toolbar and the "Plus" operation in the menu.
  6. Click the left empty block.
  7. Click the "Arithmetic" category and the "Negate" operation in the menu.
  8. Enter "b" in the top-left empty block
  9. Click the other empty block in the numerator.
  10. Click the "Arithmetic" category and the "Root" operation in the menu.
  11. Click the empty block under the radical.
  12. Click the "Arithmetic" category and the "Minus" operation in the menu.
  13. Click the left empty block.
  14. Click the "Arithmetic" category and the "Power" operation in the menu.
  15. Enter "b" and "2".
  16. ...

Using the toolbar is a bit more tedious, but serves as a way to find operations that can be expressed in MathML. Some operations have variations (A sum can take a variable and limits, or a variable and a condition) but see Limitations on how to enter them in.

Paste into connexions

Pasting the Math back into Connexions can be done the same way as before, or can be done via the Edit menu in the browser. Again, we must select the entire equation. This can be done by highlighting the equation using the mouse, or double-clicking the division bar (since it is the outer-most operation). Once highlighted, you can Click Edit, and either Cut or Copy from the main browser menu bar. If you switch back to the Connexions module editor, you can Click Edit and then Paste again from the menu to paste the newly created math back into a module.

Summary

In this tutorial we entered a part of the quadratic equation using the mouse and toolbar buttons. We used the mouse to select move the cursor and select math, the toolbar to insert new operations, and the browser's Edit menu to copy and paste math between the editor and the main module editor.

Next, we will discuss some more advanced math editing.

Advanced editing

So far we've gone through creating math from scratch. In this section, we will look at how to insert more elaborate symbols, change how variables look (Presentation MathML), and customize some of the operations provided in the toolbar.

Elaborate symbols

So far we've used simple characters available from the keyboard. The quadratic formula is frequently written with a plus-minus sign like: b ± b 2 4 a c 2 a In order to get this, we will need a little bit of Presentation MathML. This is because plus-minus is not an operation represented in Content MathML.
  1. We will start with one part of the formula (as described above )
  2. To save some time, copy the b 2 4 a c into the clipboard.
  3. Highlight everything in the numerator (it should be the entire plus operation)
  4. Replace it with " mrow " and press the enter key
  5. Enter " -b " and move to the next block
  6. Enter " ± " and move to the next block
  7. Paste the part of the formula we copied earlier
mrow is used to control how Math is displayed to the user. In this case we used it to insert a plus-minus symbol between b and b 2 4 a c . The Unicode standard defines many characters but the Unicode Mathematical Operators document may be a useful reference.

Customize the look of variables

There are many elaborate ways to customize how a variable looks. These are defined in the W3C MathML Specification . We will list off a few common ways to customize.
  • Subscripts like x i can be entered by typing " x_i " or using " msub "
  • A variable with both subscripts and superscripts can be entered using " msubsup "
  • Backets like 0 can be added using " mfenced " and then changing the symbol used for the open and close bracket (by editing the source).
  • Unlike subscripts which place content above/below and to the right, " munderover " places math directly above or below.
  • A table can be added using " mtable "

Customize toolbar operations

Many operations that operate on a range have several ways of specifying the range they work on. For example, the following are equivalent: i 1 n i 2 i S i 2 S i i 0 i n Changing the range these operations required switching to the MathML source and being familiar with the W3C MathML Specification . To change the former to the latter, we start with a clean " sum " operation. Then, to decrease the amount of hand editing, we can type " i in S " to the right of the equal sign. Then, we switch to MathML Source and replace every occurrence of " interval " with " condition " and removing the special " <block ...> " element just above the </condition> .

W3c mathml specification

The W3C MathML Specification defines all math used in Connexions modules. It provides ways to represent formulas in a way that records the semantic meaning in the formula ( Content MathML ) as well as a way to lay out variables and formulas ( Presentation MathML ).

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Connexions guide to mathml. OpenStax CNX. Aug 24, 2009 Download for free at http://cnx.org/content/col10963/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Connexions guide to mathml' conversation and receive update notifications?

Ask