Graphics, Figures & Tables ⇒ Explanations of terms in equations
Explanations of terms in equations
Alternatively, I could use lines connecting each side of the equation with a text box containing the explanation.
Any thoughts/ideas on how I can accomplish this? Thanks in advance.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Explanations of terms in equations
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\underbrace{A + B + C + D}_{\text{Some terms}} = \underbrace{D + C + B + A}_{\text{The same, reversed.}}
\]
\end{document}
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\usepackage{calc}
\newcommand{\explain}[2]{\underbrace{#1}_{\parbox{\widthof{#1}}{\footnotesize\raggedright #2}}}
\begin{document}
\[
\explain{A + B + C + D}{Here $A$ is the first letter, and $B$ is the next, and $C$ next, and so on} = \explain{D + C + B + A}{Some other really wordy explanation that goes on for far too long.}
\]
\end{document}
There's an underbracket package if you really want brackets rather than braces. Doesn't appeal as much to me, personally.
Re: Explanations of terms in equations
Let me know when you have a chance, thanks!
Explanations of terms in equations
Try this instead:
Code: Select all
\newcommand{\explain}[2]{\underbrace{#1}_{\parbox{\widthof{\ensuremath{#1}}}{\footnotesize\raggedright #2}}}