\LaTeX 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]

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 \LaTeX syntax.

  1. \LaTeX code starts with $latex and ends with a $.
  2. A fraction such as ½ is written \frac{1}{2}
  3. 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 \LaTeX

A selection of formulae

I will continue to add formulae here as I need them for the blog.

Formula\LaTeXDescription
y = mx + b$latex y = mx + b$Equation of a Line 
A = \frac{1}{2}bh$latex A = \frac{1}{2}bh$Area of a triangle
A = \pi r^2$latex A = \pi r^2$Area of a circle
P = 2\pi r$latex P = 2\pi r$Circumference of a circle
V = Bh = \pi r^2 h$latex V = Bh = \pi r^2 h$Volume of a cylinder
V = \frac{1}{3} r^2 h$latex V = \frac{1}{3} r^2 h$Volume of a cone
D = \sqrt {\left( {x_1 - x_2 } \right)^2 + \left( {y_1 - y_2 } \right)^2 }$latex D = \sqrt {\left( {x_1 - x_2 } \right)^2 + \left( {y_1 - y_2 } \right)^2 }$Distance between two coordinates (2D)
e = mc^2$latex e = mc^2$Einstein’s relativistic mass-energy relation
a=\frac{v-u}{t}$latex a = \frac{v-u}{t}$Acceleration
P = I \times V$latex P = I \times V$Power
V = I \times R$latex V = I \times R$Ohm’s Law
a = \frac{q}{m}E$latexa = \frac{q}{m}E$Acceleration of a particle in an electric field
E_k = \frac{1}{2}mv^2$latex E_k = \frac{1}{2}mv^2$Kinetic energy
F = ma$latex F = ma$Newton’s Second Law (Force)
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) }$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
\LaTeX examples

References:

  1. Inc., WordPress. com / A. (2023) Beautiful Math with LaTeXJetpack. Available at: https://jetpack.com/support/beautiful-math-with-latex/ (Accessed: 5 May 2024).
  2. 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).
  3. EquPlus.net. (no date) Science equations. Available at: https://equplus.net/ (Accessed: 4 May 2024).

By MisterFoxOnline

Mister Fox AKA @MisterFoxOnline is an ICT, IT and CAT Teacher who has just finished training as a Young Engineers instructor. He has a passion for technology and loves to find solutions to problems using the skills he has learned in the course of his IT career.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.