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]

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}

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

Cite this article as: "Write formulas using LaTeX" from Marion Wesely. Published on The house of blogs, 20/09/2017. Link: https://houseofblogs.hypotheses.org/293.

Marion Wesely

Anciennement Chargée de l'accompagnement des communautés et de la valorisation des contenus d'Hypothèses / Community manager & communication officer for the Hypotheses platform (OpenEdition)

You may also like...

Search OpenEdition Search

You will be redirected to OpenEdition Search