I want to represent a math formula as an figure instead of an equation.
My code:
\documentclass{article}
\usepackage{mathtools}% Loads amsmath
\begin{document}
\begin{equation}
\underbrace{x\ .\ y}_\text{$S_{v}$}.
\underbrace{z}_\text{(e)}
\end{equation}
\end{document}
wanted output:




$\underbrace{x\cdot y}_{S_{v}} \cdot \underbrace{z}_\text{(e)}$inside afigureenvironment with acenteringand a\caption{}. – Sigur Jan 22 '24 at 20:02