Including text within equations in LaTeX
This is the 13th video in a series of 21 by Dr Vincent Knight of Cardiff University. There are times when we wish to include text within mathematics, and we must tell LaTeX that we are writing text, otherwise it will assume the word is actually a sequence of symbols. Here we show two approaches to correctly formatting such text, the first using the \mbox
command, and the second using the \text
command which requires the amsmath
package.
To try this for yourself, click here to open the 'Text in Mathematics' example.