Search code examples
latexbeamer

In Latex beamer, how would one draw a large arrow on a slide


I am using a latex to create a slide show. I was wondering if there are ways to make a big arrow that points from some specific location on the top of my slide do somewhere in the bottom of the slide. I want to point out that two things are the same.

I am aware of Tikz : Problem is that one of the two things I point to is a maths formula (in text), and the other one is a number in a table (\begin{tabular} environment).

So I was wondering if there was just some way to a draw an arrow over the current slide, that points from location x to location y?


Solution

  • Using the tikzmark library:

    \documentclass{beamer}
    
    \usepackage{lipsum}
    
    \usepackage{tikz} 
    \usetikzlibrary{tikzmark}
    
    
    \begin{document}
    \begin{frame}
    \tikzmark{start}\lipsum[2]\tikzmark{end}
    
    
    \begin{tikzpicture}[remember picture, overlay]
    \draw[red,thick,->] (pic cs:start) -- (pic cs:end);
    \end{tikzpicture}
    
    \end{frame}
    \end{document}
    

    enter image description here