Including text within equations in LaTeX

This is video #13 in a series of twenty one 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, simply open the 'Text in Mathematics' example (opens in a new tab/window) from the video, which can edited online using writeLaTeX; there's nothing to install.

See the full list of tutorial videos.