summaryrefslogtreecommitdiff
path: root/doc/latexmathml.txt
blob: d87a7d671dd33bb6fe51ae2226ea1b3f4ff456e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
LaTeXMathML Formulae
====================

https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html[LaTeXMathML]
capability has been added to AsciiDoc for users who are more familiar
with or prefer LaTeX math formulas to the
https://asciidoc.org/asciimath.html[ASCIIMath]
notation.

'LaTeXMathML' is a derivative of
https://asciidoc.org/asciimath.html[ASCIIMath] -- in
terms of usage the only difference it that you use the `latexmath`
attribute instead of the `asciimath` attribute.

'LaTeXMathML' processes LaTeX math formulas not arbitrary LaTeX (as
`dblatex(1)` does). See the
https://www.maths.nottingham.ac.uk/plp/pmadw/lm.html[LaTeXMathML]
website for details.

Here's the link:latexmathml.txt[AsciiDoc source] that generated this
page.

Some example 'LaTeXMathML' formulas:

- latexmath:[$R_x = 10.0 \times \sin(R_\phi)$]

- latexmath:[$\sum_{n=1}^\infty \frac{1}{2^n}$]

- latexmath:[$\lim_{x\to\infty} f(x) = k \choose r + \frac ab
  \sum_{n=1}^\infty a_n + \displaystyle{ \left\{ \frac{1}{13}
  \sum_{n=1}^\infty b_n \right\} }$]

- latexmath:[$\$\alpha + \$\beta = \$(\alpha + \beta)$]

- latexmath:[$\begin{eqnarray} x & = & \frac{-7 \pm
  \sqrt{49 - 24}}{6} \\ & = & -2 \textrm{ or } -\frac13.
  \end{eqnarray}$]

- latexmath:[$\displaystyle{ V_i = C_0 - C_3
  \frac{C_1\cos(\theta_i+C_3)}{C_4+C_1\cos(\theta_i+C_2)} }$]