Write formulas using LaTeX
The Hypotheses platform now features the KaTeX plugin, which enables bloggers to write using LaTeX language, by inserting LaTeX code inbetween the shortcode [latex]...[/latex]
. Once handled, the LaTeX document preparation system allows a fast and easy visualisation of mathematical formulas, even complex ones.
For instance, written in a “Shortcode” block,
[latex]f(n)=\begin{cases} \frac{n}{2}, & \text{si }n\text{ est pair} \\ 3n+1, & \text{si }n\text{ est impair} \end{cases} \begin{pmatrix}a_1 & b_1 \\ a_2 & b_2 \end{pmatrix}[/latex]
Appears, thanks to this plugin, under the following form :
f(n)=\begin{cases} \frac{n}{2}, & \text{si }n\text{ est pair} \\ 3n+1, & \text{si }n\text{ est impair} \end{cases} \begin{pmatrix}a_1 & b_1 \\ a_2 & b_2 \end{pmatrix}To be noted: adding display=“true” into the shortcode (this way: [latex display="true"]...[/latex]
), centers the formula.
For instance,
[latex display="true"]f(n)=\begin{cases} \frac{n}{2}, & \text{si }n\text{ est pair} \\ 3n+1, & \text{si }n\text{ est impair} \end{cases}\begin{pmatrix}a_1 & b_1 \\ a_2 & b_2 \end{pmatrix}[/latex]
You can read the KaTeX plugin description on the WordPress website.
Featured image: e^(iπ) by Toni Holmes under Creative Commons BY-NC-SA licence