Skip to main content

Content markup

While the MathFlow Editor currently saves equations as Presentation Markup (as shown in the previous section), it is possible to bring Content (or Mixed) Markup into the XML editor from another source (since the MathML DTD allows this). This markup would appear in the Document Map and would be rendered in the Edit window.

Caution

Note: This markup can be edited by the MathFlow Editor. However, once a change is made to the equation, the MathFlow Editor will save it as Presentation Markup and the original markup will be lost. For this reason, if you need to preserve the original markup, do not edit the equation with MathFlow Editor.

It is fairly easy to tell if a given equation would generate valid Content MathML. In order to check this, create your equation and click on the checkmark symbol near the right side of the Style toolbar:

mathflow_style_toolbar.png

This is the syntax checker. Clicking on this will tell you whether or not the equation is able to be converted into its syntactic representation (Content markup) or not. In the example noted in the previous topic (presentation markup), the syntax checker would complain about the plus sign at the end of the equation.

Here are a few examples of expressions that would not generate valid content markup and the errors that they return.

Infix operator seems to be missing its right operand.

mathflow_content_markup-1.png

The final operator must have an element on both the right and the left-hand sides.

Malformed expression

mathflow_content_markup-2.png

A template has been left unfilled. In this example, nothing was entered under the square root sign.

Unknown prefix operator

mathflow_content_markup-3.png

An unknown symbol was used as an operator.

Infix operator seems to be missing both its operands

mathflow_content_markup-4.png

A plus sign was added, nothing else.

Operator appears to be out of context

mathflow_content_markup-5.png

A comparison operator with nothing else.

Left fence has no matching right one

mathflow_content_markup-6.png

A [, { or ( must be balanced by a closing fence.