Render Math With Mathjax

Gurusabarish | Dec 9, 2022 min read

Mathjax

Math equations can be rendered using Mathjax syntax with AMS symbol support.

Optionally enable this on a per-page basis by adding mathjax: true to your frontmatter.

Then, use $$ ... $$ on a line by itself to render a block equation:

$$ | Pr_{x \leftarrow P_{1}} [A(x) = 1] - Pr_{x \leftarrow P_{2}} [A(x) = 1] | < \text{negligible} $$

The raw version is:

$$ | Pr_{x \leftarrow P_{1}} [A(x) = 1] - Pr_{x \leftarrow P_{2}} [A(x) = 1] | < \text{negligible} $$

Write in-line equations with \\( ... \\) , like \( x^n / y \) . It’s easy!

Write in-line equations with `\\( ... \\)` , like \\( x^n / y \\) . It's easy!
comments powered by Disqus