### THE UNIVERSITY of EDINBURGH

# SCHOOL OF PHYSICS AND ASTRONOMY

# SnuggleTeX (1.2.2)

Skip Navigation

## ASCIIMathML Enrichment Demo

### Input

This demo is similar to the MathML Semantic Enrichnment Demo but uses ASCIIMathML as an alternative input format, which provides real-time feedback as you type but can often generate MathML with odd semantics in it. SnuggleTeX includes some functionality that can to convert this raw MathML into something equivalent to its own MathML output, thereby allowing you to semantically enrich it in certain simple cases, making ASCIIMathML a possibly viable input format for simple semantic maths.

To try the demo, simply enter some some ASCIIMathML into the box below. You should see a real time preview of this while you type. Then hit `Go!` to use SnuggleTeX to semantically enrich your input.

ASCIIMath Input:

### Live Preview

This is a MathML rendering of your input, generated by ASCIIMathML as you type.

This is the underlying MathML source generated by ASCIIMathML, again updated in real time.

### Enhanced Presentation MathML

This shows the result of attempting to enrich the raw Presentation MathML generated by ASCIIMathML:

    <math xmlns="http://www.w3.org/1998/Math/MathML">
       <mn>2</mn>
    </math>

### Content MathML

This shows the result of an attempted conversion to Content MathML:

    <math xmlns="http://www.w3.org/1998/Math/MathML">
       <cn>2</cn>
    </math>

### Maxima Input Form

This shows the result of an attempted conversion to Maxima Input syntax:

    2

### MathML Parallel Markup

This shows the enhanced Presentation MathML with other forms encapsulated as annotations:

    <math xmlns="http://www.w3.org/1998/Math/MathML">
       <semantics>
          <mn>2</mn>
          <annotation-xml encoding="MathML-Content">
             <cn>2</cn>
          </annotation-xml>
          <annotation encoding="ASCIIMathInput"/>
          <annotation encoding="Maxima">2</annotation>
       </semantics>
    </math>

SnuggleTeX Release 1.2.2 — Release Notes
Copyright © 2009 The School of Physics and Astronomy, The University of Edinburgh.
For more information, contact David McKain.

The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.