PageSeeder supports the rendering of MathML expressions in documents and fragments.
PageSeeder doesn’t support any inline label to render MathML. To display a mathematical expression using MathML, use the math xref type.
See MathML for further information about the format.
Use the file extension .mml
or .mathml
for MathML documents.
PageSeeder automatically renders xrefs of type math
pointing to MathML documents or fragments.
To let users select MathML documents to include in their content, you need to create a math xref config.
<!-- To insert an expression stored in MathML document -->
<xref-config name="mathml" title="MathML">
<xref display="document"
frag="default"
type="math" />
<target filters="+psmediatype:application/mathml+xml" />
</xref-config>
See PSML xref config for details.
Use the media type application/mathml+xml
for MathML media fragments.
You don’t need to declare the MathML namespace inside a media fragment. So <math>
is equivalent to <math xmlns="http://www.w3.org/1998/Math/MathML">
.
Example
<media-fragment mediatype="application/mathml+xml">
<math>
<mrow>
<mo>[</mo>
<mtable>
<mtr>
<mtd>
<mn>1</mn>
</mtd>
<mtd>
<mn>0</mn>
</mtd>
</mtr>
<mtr>
<mtd>
<mn>0</mn>
</mtd>
<mtd>
<mn>1</mn>
</mtd>
</mtr>
</mtable>
<mo>]</mo>
</mrow>
</math>
</media-fragment>
PageSeeder supports MathML in both Word and PDF.
Microsoft Office supports MathML, so MathML content is directly exported to the Word document.
When publishing PDF documents, PageSeeder first renders your MathML as a PNG image to include in your PDF.
The PageSeeder user manual
© Allette Systems (Australia)