Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Say I have an equation:

x = R + E

What's the best way to provide a definition for R and E? Is there a way to include a line under the equation saying what the variables mean (i.e. a "where" clause)? Example:

x = R + E
where R is Racoon, E is Elephant
share|improve this question
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. – Werner Dec 31 '11 at 16:01

migrated from stackoverflow.com Nov 29 '11 at 11:46

1 Answer

up vote 9 down vote accepted

Since mathematics (in general) should form part of the textual flow, one can follow an equation with symbol explanations. This would even include proper punctuation in the equation itself:

enter image description here

\documentclass{article}
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac velit dolor. 
Nulla nunc dolor, commodo sed consectetur ac, dapibus malesuada odio. 
Mauris porta libero eget nisi placerat quis bibendum tellus fermentum. It is therefore
possible to define the relationship
\[
  x = R + E,
\]
where~$R$ is a racoon and~$E$ is an elephant. Sed suscipit tristique laoreet. 
Nulla mi orci, rutrum sed dapibus sed, elementum nec lacus. 
Phasellus id tellus mi, at rutrum justo. Nullam eget turpis justo, ullamcorper 
pretium mauris.
\end{document}

This, in my opinion, is the best way to declare variables or symbols used in an equation. However, if need be, it is possible "to include a line under the equation saying what the variables mean." I'm not sure whether this is the "best way" though:

enter image description here

\documentclass{article}
\usepackage{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac velit dolor. 
Nulla nunc dolor, commodo sed consectetur ac, dapibus malesuada odio. 
Mauris porta libero eget nisi placerat quis bibendum tellus fermentum. It is therefore
possible to define the relationship
\begin{gather*}
  x = R + E, \\
  \text{where~$R$ is Racoon,~$E$ is Elephant}
\end{gather*}
Sed suscipit tristique laoreet. 
Nulla mi orci, rutrum sed dapibus sed, elementum nec lacus. 
Phasellus id tellus mi, at rutrum justo. Nullam eget turpis justo, ullamcorper 
pretium mauris.  It is therefore
possible to define the relationship
\begin{align*}
  x &= R + E, \\
  \text{where}~R &= \text{Racoon,} \\
  E &= \text{Elephant}
\end{align*}
\end{document}

amsmath provides the mathematical alignment environments (align* and gather).

share|improve this answer
Thanks, exactly what I was looking for. Kudos to you for providing multiple examples. – user963396 Nov 29 '11 at 8:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.