is also supported by Microsoft 365 Word.
is a markup language that allows you to write complex mathematical formulae beautifully. It is fully supported by WordPress if you have JetPack installed. [1]
In this tutorial:
Enable
To enable this feature, visit Jetpack » Settings » Writing in your site’s WordPress Admin. Scroll down to the Composing section and toggle on the Use the LaTeX markup language to write mathematical equations and formulas option. [1]
Syntax
A formula is created using specific syntax.
code starts with
$latex
and ends with a$
.- A fraction such as ½ is written
\frac{1}{2}
- Resulting in
$latex \frac{1}{2}
Size can be modified &s=4
Colour can be specified:
- background colour:
&bg=ffcccc
- font colour:
&fg=cc00ff
Refer to the PDF manual available here: Short Math Guide for
A selection of formulae
I will continue to add formulae here as I need them for the blog.
Formula | Description | |
---|---|---|
$ latex y = mx + b$ | Equation of a Line | |
$ latex A = \frac{1}{2}bh$ | Area of a triangle | |
| $ latex A = \pi r^2$ | Area of a circle |
$ latex P = 2\pi r$ | Circumference of a circle | |
$ latex V = Bh = \pi r^2 h$ | Volume of a cylinder | |
$ latex V = \frac{1}{3} r^2 h$ | Volume of a cone | |
| $ latex D = \sqrt {\left( {x_1 - x_2 } \right)^2 + \left( {y_1 - y_2 } \right)^2 }$ | Distance between two coordinates (2D) |
| $ latex e = mc^2$ | Einstein’s relativistic mass-energy relation |
| $ latex a = \frac{v-u}{t}$ | Acceleration |
| $ latex P = I \times V$ | Power |
$ latex V = I \times R$ | Ohm’s Law | |
| $latex a = \frac{q}{m}E$ | Acceleration of a particle in an electric field |
$ latex E_k = \frac{1}{2}mv^2$ | Kinetic energy | |
$ latex F = ma$ | Newton’s Second Law (Force) | |
$ latex S = 2r\sin^{-1}\sqrt { \sin^2 \left( \frac{ \phi2 - \phi1 }{2}\right)+\cos\phi_1 \cos\phi_2 \sin^2 \left( \frac{\lambda_2 - \lambda_1}{2} \right) }$ | Haversine Formula |
References:
- Inc., WordPress. com / A. (2023) Beautiful Math with LaTeX, Jetpack. Available at: https://jetpack.com/support/beautiful-math-with-latex/ (Accessed: 5 May 2024).
- Downes, M. (No date). Short Math Guide for LATEX. Available at: https://mirror.ufs.ac.za/ctan/info/short-math-guide/short-math-guide.pdf (Accessed: 4 May 2024).
- EquPlus.net. (no date) Science equations. Available at: https://equplus.net/ (Accessed: 4 May 2024).