I am trying to apply a simple transition in beamer, after writing the operation without having to repeat the equation every time. I try the code :
\begin{frame}
\frametitle{Exemples}
\begin{exampleblock}{2.1.2.Exemples}
Effectuer les opérations suivantes:
\begin{multicols}{2} % two columns
\begin{itemize}[<+->]
\item<1-> $A = \underbrace{(15 - 7)\onslide<2>}- 6 + 3$
\item<2-> $A = \underbrace{8 - 6\onslide<3>} + 3 $
\item<3-> $A = \underbrace{2 + 3\onslide<4>} $
\item<4-> $A = 5 $
\columnbreak
\item<5-> $B =\underbrace{(9 + 13)\onslide<2->}- 7.2 - 1 $
\item<6-> $B = \underbrace{22 - 7.2} - 1 $
\item<7-> $B = \underbrace{14.8 - 1} $
\item<8-> $B = 13.8 $
\end{itemize}
\end{multicols}
\end{exampleblock}
\end{frame}
I am trying to make the equations A and B appear at first, let the students have a time of reflection, then show the correction step by step, first by showing the underbrace beneath each operation, then transition to display the next line $ A = 8 - 6 + 3 $ ... so I use \only<1-> but its not working, I think its a basic question, Now I already inserted the transition between item correctly and I get the result:
I am just not familiar with this \onslide<2> action yet, please help fix this problem ,
thanks for the help !


\onslidebut it seems\altis the way to go – user2161721 Aug 02 '21 at 22:10\alt<os>{<default>}{<other>}prints<default>on<os>and<other>otherwise. – Werner Aug 03 '21 at 03:28eqparbox, I am having trouble recompiling this one25+3.5 \times 4using the same structure, can you endolge me on this one too please – user2161721 Aug 03 '21 at 12:01