Skip to main content


A-Z glossary of PageSeeder concepts


A free, open-source project  that supports the creation of MathML equations using a simple, plain text syntax and a standard web browser.

It isn’t as comprehensive as MathML or TeX, but it’s useful for data entry because symbols attempt to mimic in text what they look like rendered, like oo for ∞. It often results in more concise expressions.

AsciiMath can be used in media fragments with the media type text/asciimath and inline labels asciimath.

See also MathML.

AsciiMath media fragment

To use a media fragment for ascii math, ensure that the media type is text/asciimath.

<media-fragment id="1" 
  mediatype="text/asciimath">sum_(i=1)^n i^3=((n(n+1))/2)^2</mediafragment>

PageSeeder can render your equation natively and displays the following in the browser:

 AsciiMath rendering example

If you need users to enter ascii math equations in media fragments, your document template must either have the media fragments predefined in the structure or you need to define a fragment template like this in your document-template.psml :

<?xml version="1.0"?>
<document xmlns:t="" level="portable">

  <t:fragment type="asciimath" title="AsciiMath">
    <t:description>Add an AsciiMath fragment</t:description>
    <media-fragment mediatype="text/asciimath" />

  <!-- The rest of your document template goes here -->



AsciiMath inline label

PageSeeder also supports the use of specific asciimath inline labels to render asciimath expressions in your text content.

Using an inline label is convenient for shorter expressions that users want to display inline with their content, but they cannot be reused or transcluded. This is supported natively – managers only need to define these inline labels as project labels so that they are available to end-users.

For example:

<para>This formula <inline label="asciimath">f(x) = x^2</inline> is an example.</para>

Can be edited in PageSeeder as:

AsciiMath inline label – Edit

And renders as:

AsciiMath inline label – View

If you publish your content outside of PageSeeder, ensure that your publish output can render your asciimath content. 

Created on , last edited on