Home

Math

This is an abstract base type used in Stencila Schema for mathematical content.

It exists to provide a shared representation for inline and block math, including source math code, math language, authorship, provenance, and compilation-related metadata such as MathML and diagnostics. This keeps mathematical content aligned across authoring, rendering, and interchange workflows.

Key properties include code, mathLanguage, compilationDigest, compilationMessages, mathml, and images.

Analogues

The following external types, elements, or nodes are similar to a Math:

  • MathML: Close interchange analogue for mathematical notation, though Stencila stores source math plus compiled MathML and related metadata.

  • Pandoc Math: Close Pandoc analogue for shared mathematical content across inline and display contexts.

Properties

The Math type has these properties:

NameDescriptionTypeInherited from
codeThe code of the equation in the mathLanguage.Cord-
mathLanguageThe language used for the equation e.g tex, mathml, asciimath.String-
authorsThe authors of the math.Author*-
provenanceA summary of the provenance of the math.ProvenanceCount*-
compilationDigestA digest of the code and mathLanguage.CompilationDigest-
compilationMessagesMessages generated while parsing and compiling the math expression.CompilationMessage*-
mathmlThe MathML transpiled from the code.String-
imagesImages of the math.ImageObject*-
idThe identifier for this item.StringEntity

Related

The Math type is related to these types:

Bindings

The Math type is represented in:


This documentation was generated from Math.yaml by docs_types.rs.

© 2026 Stencila