Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{beamer} %
- \usetheme{CambridgeUS}
- \usepackage[latin1]{inputenc}
- \usefonttheme{professionalfonts}
- \usepackage{times}
- \usepackage{tikz}
- \usepackage{amsmath}
- \usepackage{verbatim}
- \usetikzlibrary{arrows,shapes}
- \author{Author}
- \title{Presentation title}
- \begin{document}
- % For every picture that defines or uses external nodes, you'll have to
- % apply the 'remember picture' style. To avoid some typing, we'll apply
- % the style to all pictures.
- \tikzstyle{every picture}+=[remember picture]
- % By default all math in TikZ nodes are set in inline mode. Change this to
- % displaystyle so that we don't get small fractions.
- \everymath{\displaystyle}
- \begin{frame}{Rigid body dynamics}
- \frametitle{Rigid body dynamics}
- \tikzstyle{na}=[baseline=-.5ex]
- %% Below we mix an ordinary equation with TikZ nodes. Note that we have to adjust the baseline of the nodes to get proper alignment with the rest of the equation.
- \begin{equation*}
- \vec{a}_p = \vec{a}_o+\frac{{}^bd^2}{dt^2}\vec{r} +
- 2\vec{\omega}_{ib}\times\frac{{}^bd}{dt}\vec{r}
- + \vec{\alpha}_{ib}\times\vec{r} + \vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})
- \end{equation*}
- \end{frame}
- \begin{frame}
- \frametitle{Rigid body dynamics}
- \tikzstyle{na}=[baseline=-.5ex]
- %% Below we mix an ordinary equation with TikZ nodes. Note that we have to adjust the baseline of the nodes to get proper alignment with the rest of the equation.
- \begin{equation*}
- \vec{a}_p = \vec{a}_o+\frac{{}^bd^2}{dt^2}\vec{r} + \pause
- \tikz[baseline]{
- \node[fill=blue!20,anchor=base] (t1)
- {$ 2\vec{\omega}_{ib}\times\frac{{}^bd}{dt}\vec{r}$};
- } + \pause
- \tikz[baseline]{
- \node[fill=red!20, ellipse,anchor=base] (t2)
- {$\vec{\alpha}_{ib}\times\vec{r}$};
- } + \pause
- \tikz[baseline]{
- \node[fill=green!20,anchor=base] (t3)
- {$\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})$};
- }
- \end{equation*}
- \begin{itemize}[<+-| alert@+>]
- \item Coriolis acceleration
- \tikz[na] \node[coordinate] (n1) {};
- \item Transversal acceleration
- \tikz[na]\node [coordinate] (n2) {};
- \item Centripetal acceleration
- \tikz[na]\node [coordinate] (n3) {};
- \end{itemize}
- % Now it's time to draw some edges between the global nodes. Note that we
- % have to apply the 'overlay' style.
- \begin{tikzpicture}[overlay]
- \path[->]<1-> (n1) edge [bend left] (t1);
- \path[->]<2-> (n2) edge [bend right] (t2);
- \path[->]<3-> (n3) edge [out=0, in=-90] (t3);
- \end{tikzpicture}
- \end{frame}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement