Ever wanted to include a math formula in your blog posts? I studied Pure
Mathematics as a major in my BSc degree so I like to use math symbols and notation
in some of my posts.
For this site, I enabled the use of math blocks via
remark-math
and
Remark MDX math enhanced
plugins.
The plugins use the underlying
KaTeX
library for math typesetting, which is fast and reliable and created by the
Khan Academy.
Here is an example of both inline and block math content generated using
the following text in the markdown document:
Lift($L$) can be determined by Lift Coefficient ($C_L$) like the following equation.
$$
L = \frac{1}{2} \rho v^2 S C_ L
$$
Lift(L L L ) can be determined by Lift Coefficient (C L C_L C L ) like the following equation.
L = 1 2 ρ v 2 S C L L = \frac{1}{2} \rho v^2 S C_L L = 2 1 ρ v 2 S C L
Additional examples, taken from the KaTeX website:
1 ( ϕ 5 − ϕ ) e 2 5 π = 1 + e − 2 π 1 + e − 4 π 1 + e − 6 π 1 + e − 8 π 1 + ⋯ \displaystyle \frac{1}{\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) e^{\frac25 \pi}} = 1+\frac{e^{-2\pi}} {1+\frac{e^{-4\pi}} {1+\frac{e^{-6\pi}} {1+\frac{e^{-8\pi}} {1+\cdots} } } } ( ϕ 5 − ϕ ) e 5 2 π 1 = 1 + 1 + 1 + 1 + 1 + ⋯ e − 8 π e − 6 π e − 4 π e − 2 π
( ∑ k = 1 n a k b k ) 2 ≤ ( ∑ k = 1 n a k 2 ) ( ∑ k = 1 n b k 2 ) \displaystyle \left( \sum_{k=1}^n a_k b_k \right)^2 \leq \left( \sum_{k=1}^n a_k^2 \right) \left( \sum_{k=1}^n b_k^2 \right) ( k = 1 ∑ n a k b k ) 2 ≤ ( k = 1 ∑ n a k 2 ) ( k = 1 ∑ n b k 2 )
1 + q 2 ( 1 − q ) + q 6 ( 1 − q ) ( 1 − q 2 ) + ⋯ = ∏ j = 0 ∞ 1 ( 1 − q 5 j + 2 ) ( 1 − q 5 j + 3 ) , for ∣ q ∣ < 1. \displaystyle {1 + \frac{q^2}{(1-q)}+\frac{q^6}{(1-q)(1-q^2)}+\cdots }= \prod_{j=0}^{\infty}\frac{1}{(1-q^{5j+2})(1-q^{5j+3})}, \quad\quad \text{for }\lvert q\rvert<1. 1 + ( 1 − q ) q 2 + ( 1 − q ) ( 1 − q 2 ) q 6 + ⋯ = j = 0 ∏ ∞ ( 1 − q 5 j + 2 ) ( 1 − q 5 j + 3 ) 1 , for ∣ q ∣ < 1.