I'm trying to digitize my professor's lecture notes.
How do I add the arrows and the annotations to the equation? I know this can be done using TikZ, but I just started picking it up... so I have no idea how to do it yet.
Here are the different parts to assemble.
begin{align*}
L &= T - V \\
&= \frac{1}{2} m \sum_{n=1}^N \dot{q}_n^2 - \frac{1}{2} \kappa \sum_{n=1}^N (q_{n+1} - q_n)^2
\end{align*}
\begin{equation*}
\dot{x}_n (t) = \dot{q}_n (t)
\end{equation*}
It's only the difference in the displacements of the masses from their equilibrium position that contributes to the potential energy
\begin{align*}
\big( x_{n+1} (t) - x_n (t) \big) - \epsilon &= ( n + 1 ) \epsilon + q_{n+1} (t) - n \epsilon - q_n (t) - \epsilon \\
&= q_{n+1} (t) - q_n (t)
\end{align*}


tikzmarkpackage was originally designed for. There are plenty of examples here, and in the documentation. – Andrew Stacey Sep 14 '20 at 20:10