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.
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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}}}