TransWikia.com

Reverse the direction of pause in a matrix

TeX - LaTeX Asked on December 12, 2020

What I’m trying to do is to display the third row first then the second row and then the first row, is there a way to do that? Thanks again in advance for your help.

documentclass{beamer}
begin{document}
begin{frame}{test}
$begin{bmatrix}
  pause
  1  & -3 & 0            & 5            
  pause
  -1 & 1  & 5            & 2            
  pause
  0  & 0  & tfrac{7}{2} & tfrac{7}{2} 
end{bmatrix}$
end{frame}
end{document}

2 Answers

Use onslide.

documentclass{beamer}
begin{document}
begin{frame}{test}
$begin{bmatrix}
  onslide<3->
  1  & -3 & 0            & 5            
  onslide<2->
  -1 & 1  & 5            & 2            
  onslide<1->
  0  & 0  & tfrac{7}{2} & tfrac{7}{2} 
end{bmatrix}$
end{frame}
end{document}

Correct answer by ZhiyuanLck on December 12, 2020

You can change the positions of the rows as follows:

$begin{bmatrix}
0  &  0  &  tfrac{7}{2}  & tfrac{7}{2}    
-1 &  1  & 5  & 2 
1 & -3  & 0  & 5  
end{bmatrix} $

The third row is at the first, then second row is at second and the first row is at the last.

It's output is as matrix output

Answered by Abuzar Ghafari on December 12, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP