Book page

Images with formulas

Fernando MORENTE-ORIA
Fernando MORENTE-ORIA • 17 December 2024

Q: How should I handle images with formulas?

A: Split images with formulas into smaller images to keep the text out of the image, and insert AltText to explain what is behind the formula

Bad example

The text is kept in the image:

Formula bad example
Good example

The text is kept out of the image:

  1. Population Variance
Formula good example 1
  1. Sample Variace
Formula good example 2
Alt text suggestions
  1. Formula for population variance: σ² = (Σ(xᵢ - μ)²) / N. The formula shows the population variance, σ², calculated as the sum of the squared differences between each data point, xᵢ, and the population mean, μ, divided by the total number of data points, N.
     
  2. Formula for sample variance: s² = (Σ(xᵢ - x̄)²) / (n - 1). The formula shows the sample variance, s², calculated as the sum of the squared differences between each data point, xᵢ, and the sample mean, x̄, divided by the total number of data points minus one, n - 1, also known as Bessel's correction.