Skip to content

Latest commit

 

History

History
59 lines (50 loc) · 1.45 KB

chapter-05.adoc

File metadata and controls

59 lines (50 loc) · 1.45 KB

Using Mathematical Formulas

MathJax is an open source JavaScript display engine for mathematics that works in all browsers.

Tex Example

\begin{align} \dot{x} & = \sigma(y-x) \\ \dot{u} & = \rho x - y - xz \\ \dot{z} & = -\beta z + xyz \end{align}

You can use Tex or MathML languages for describing mathematical formulas in AsciidocFX. AsciidocFX converts this textual formulas as png image.

MathML Example

<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> <mi>x</mi> <mo>=</mo> <mrow> <mfrac> <mrow> <mo>−</mo> <mi>b</mi> <mo>±</mo> <msqrt> <msup> <mi>b</mi> <mn>2</mn> </msup> <mo>−</mo> <mn>4</mn> <mi>a</mi> <mi>c</mi> </msqrt> </mrow> <mrow> <mn>2</mn> <mi>a</mi> </mrow> </mfrac> </mrow> <mtext>.</mtext> </math>

It is also possible to define formulas as an inline element

This is Inline latex formula \(C = \alpha + \beta Y^{\gamma} + \epsilon\) in the middle of the sentence, and this is Tex inline tex:[\(ax^3+ bx + c = 0\)]

It is also possible to load content from another file

This is MathML block macro (content from file).

mathml::mathml[]