Mathematical notation
·1 min
![](/posts/samples/mathematical-notation/feature-artturi-jalli-gYrYa37fAKI-unsplash_hu427341567a8a18cd97a56508f23b37d5_443636_660x0_resize_q75_box.jpg)
Table of Contents
KaTeX can be used to render mathematical notation within articles.
Inline notation #
Inline notation can be generated by wrapping the expression in \\(
and \\)
delimiters.
Example:
% KaTeX inline notation
Inline notation: \\(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\\)
Inline notation: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\)
Block notation #
Alternatively, block notation can be generated using $$
delimiters. This will output the expression in its own HTML block.
Example:
% KaTeX block notation
$$
\varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } }
$$
$$ \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } $$