Tooltips and Toggleable Math
Enable with: \require{action}
Commands: \mathtip{math}{tip}
and \texttip{math}{tip}
Apply tooltips to math expressions (text shown when the cursor is hovered over the expression). \mathtip
shows tip
using math-mode rendering; \texttip
shows tip
using text-mode rendering.
$$
\require{action}
\texttip{a+b}{Addition} \\ ~ \\
\mathtip{\ln{\!\left( e^x \right)}}{=x}
$$$$
\require{action}
\texttip{a+b}{This is addition!} \\ ~ \\
\mathtip{\ln{\!\left( e^x \right)}}{=x}
$$
$$ \require{action} ~\\ \texttip{a+b}{Addition} \\ ~ \\ \mathtip{\ln{\!\left( e^x \right)}}{=x} $$$$ \require{action} ~\\ \texttip{a+b}{This is addition!} \\ ~ \\ \mathtip{\ln{\!\left( e^x \right)}}{=x} $$
Command: \toggle{math1}{math2}...\endtoggle
Create a math object that cycles through different expressions when clicked.
$$
\require{action}
\toggle{a}{a+b}{a+b+c}{a+b+c+d}\endtoggle
$$
$$ \require{action} ~\\ \toggle{a}{a+b}{a+b+c}{a+b+c+d}\endtoggle $$