I would like to achieve two goals with the code below.
- Change the width of the red rectangle.
- Draw the arrows added by hand in the following screenshot.
Any clue or advice will be appreciated.
\documentclass{article}
\usepackage{nicematrix}
\usepackage{tikz}
\begin{document}
$\begin{NiceArray}{rcl}[name=test]
2 x + 3 & = & 5 x - 4
\\[-.5em]
\\
\Block[draw=red]{1-3}{- 3}
\\
\\[-.5em]
2 x & = & 5 x - 7
\\[-.5em]
\\
\Block[draw=red]{1-3}{- 5x}
\\
\\[-.5em]
-3 x & = & - 7
\end{NiceArray}$
\end{document}