TransWikia.com

How to insert a block in a formula

TeX - LaTeX Asked on April 16, 2021

I am writing a presentation with Beamer and I would like to get the following effect: I have the formula

begin{align}
a=b 
end{align}

I would like (after that a=b appears) to put b inside a blue block and put an arrow that starts in the block and goes down and a zero after the arrow (just to say that b converegs to 0)

How should I do?

One Answer

A rude solution based on other question:

documentclass{beamer}

usepackage{amsmath}
usepackage[most]{tcolorbox}

tcbset{colback=yellow!10!white, colframe=blue!50!black, 
        highlight math style= {enhanced, %<-- needed for the ’remember’ options
            colframe=blue,colback=blue!10!white,boxsep=0pt}
        }

begin{document}
begin{frame}

begin{align*}
a=&tcbhighmath[remember as=fx]{b}
visible<2->{
&tcbhighmath[remember, opacityback=0,enhanced jigsaw, boxrule=-0pt, no borderline, colframe=white, overlay={%
draw[black,very thick,->] (fx.south) to ([yshift=0mm]frame.north);}]{0}
}
end{align*}
end{frame}
end{document}

Answered by Tom Solid on April 16, 2021

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