equation with captionlatex code example Example: equation with captionlatex \begin{figure} \[ E = m c^2 \] \caption{A famous equation} \end{figure}