1

Currently, the two arrows are pointing to jumped and over in the sentence. I was wondering how I can move these two arrows from The(at the beginning of the sentence) to dog.

EDIT : I am trying to reproduce slides 12-25 from this talk.

My only option is to include images with arrows pointing to different words.

\begin{document}
  \frame{
    \frametitle{Learning Algorithm(Contd.)}

    \begin{figure}
          \includegraphics[width=.9\textwidth]{Fig1.PNG}
          \label{fig:Fig1}
    \end{figure}

  }

  \frame{
    \frametitle{Learning Algorithm(Contd.)}

    \begin{figure}
          \includegraphics[width=.9\textwidth]{Fig2.PNG}
          \label{fig:Fig2}
    \end{figure}

  }
  \end{document}

Fig1

Fig2

  • 2
    Can you provide a compilable MWE showing what you've done so far? – Richard May 28 '16 at 4:54
  • Rather than post image files of the output of your code, please post the code itself. – Mico May 28 '16 at 6:35
  • 2
    We won't know why you can't move the arrows unless we understand how you're placing the arrows at present. For that, we need to see the code, not an image file. Please note that I haven't claimed you should "resort [to] tikz". – Mico May 28 '16 at 7:00
  • 1
    From your code I can conclude that you use beamer as document class and that you so far use images (drawn in unknown program), which you include in frame as image. What is your question actually? How to make animation in which you in desired sequence uncover/hide your images? Or how to draw new images? Or how to draw/wrote this images with LaTeX? – Zarko May 28 '16 at 10:02
  • 1
    If you do not know how to insert the arrows with latex, you could at least provide a MWE that prints the text about the fox and the dog. – user36296 May 28 '16 at 10:51
2

I suggest you use a custom array environment to stack the word/arrow/explanation triplets. Observe the use of the \color macro to set colors.

enter image description here

\documentclass{beamer}

\usepackage{mathtools} % for "\mathclap" macro
\newcommand\stacktab[2]{%
    $\begin{array}[t]{@{}c@{}}
     \text{#1} \\ \uparrow \\ \mathclap{#2} \end{array}$}
\newcommand\uIN{\upsilon^{}_{\!IN}}
\newcommand\uOUT{\upsilon^{}_{\!OUT}}

\begin{document}
\begin{frame}
The quick brown fox \stacktab{jumped}{\uOUT} 
\stacktab{\color{blue}over}{\uIN} the lazy dog.

\bigskip
\stacktab{\color{magenta}The}{\uOUT} quick brown fox jumped 
\stacktab{\color{red}over}{\uIN} the lazy dog.

\bigskip
The quick brown fox jumped over the \stacktab{lazy}{\uIN} 
\stacktab{\color{purple}dog}{\ \uOUT}. % shift "\UOUT" slightly to the right

\end{frame}
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.