By using MathJax, we can display all sorts of notation.
We can do inline math:
Or we can do block math:
And even diagrams via xyjax:
Recently, I learned that MathJax had an alternative syntax, AsciiMath that is simpler for many purposes. Smartdown has enabled this feature, although we are currently using @
as the delimiter instead of ` or $
.
Currently, Smartdown uses LaTeX-style math syntax, so the following formula:
is expressed as:
$$
\sum_{i=1}^{n} i^3=\left(\frac{n(n+1)}{2}\right)^2
$$
The above formula is expressed in AsciiMath (using @
as delimiters) as:
@sum_(i=1)^n i^3=((n(n+1))/2)^2@
which Smartdown now renders as:
@sum_(i=1)^n i^3=((n(n+1))/2)^2@
Note that AsciiMath via MathJax does not support display-mode equations, but centering can be achieved via Markdown table syntax:
| |
|:---:|
|@sum_(i=1)^n i^3=((n(n+1))/2)^2@|
which renders as below:
@sum_(i=1)^n i^3=((n(n+1))/2)^2@ |
AsciiMath | Rendered |
---|---|
@[[a,b],[c,d]]@ |
@[[a,b],[c,d]]@ |
@sqrt sqrt root3x@ |
@sqrt sqrt root3x@ |
@int_0^1 f(x)dx@ |
@int_0^1 f(x)dx@ |
@hat(ab) bar(xy) ulA vec v dotx ddot y@ |
@hat(ab) bar(xy) ulA vec v dotx ddot y@ |
Back to Home