I would like to automatically generate a list of equations present in the document, which includes the equation itself. Here is a MWE:
\documentclass{article} \def\caption#1{} \begin{document} First Euler observed that \begin{equation} 1 + e^{i \Pi} = 0. \caption{Euler's equation tying together the five fundamental constants of mathematics} \end{equation} Then, Gauss discovered the normal distribution: \begin{equation} P(x) = \frac{1}{{\sigma \sqrt {2\pi } }}e^{{{ - \left( {x - \mu } \right)^2 } \mathord{\left/ {\vphantom {{ - \left( {x - \mu } \right)^2 } {2\sigma ^2 }}} \right. \kern-\nulldelimiterspace} {2\sigma ^2 }}} \caption{Normal distribution} \end{equation} Finally, Einstein proclaimed: \begin{equation} E = m C^2 \caption{Equivalence of mass and energy} \end{equation} \end{document}
Here is an example of how the output might look, but any other format may be fine; it would of course be nice to have hyperref links, page numbers, etc, but these are not essential.
\section*{List of equations} \begin{enumerate} \item Euler's equation tying together the five fundamental constants of mathematics \[ 1 + e^{i \Pi} = 0. \] \item Normal distribution: \[ P(x) = \frac{1}{{\sigma \sqrt {2\pi } }}e^{{{ - \left( {x - \mu } \right)^2 } \mathord{\left/ {\vphantom {{ - \left( {x - \mu } \right)^2 } {2\sigma ^2 }}} \right. \kern-\nulldelimiterspace} {2\sigma ^2 }}} \] \item Equivalence of mass and energy \[ E = m C^2 \] \end{enumerate}
Best Answer
Since you want a cheat sheet, I'd recommend the
extract
package. With a slightly different MWE:you get an original document of:
and an extracted document of:
and:
This also works with your original
\caption
command.