Advertisement
Guest User

latex_shit

a guest
Feb 12th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. \documentclass{beamer} %
  2. \usetheme{CambridgeUS}
  3. \usepackage[latin1]{inputenc}
  4. \usefonttheme{professionalfonts}
  5. \usepackage{times}
  6. \usepackage{tikz}
  7. \usepackage{amsmath}
  8. \usepackage{verbatim}
  9. \usetikzlibrary{arrows,shapes}
  10.  
  11. \author{Author}
  12. \title{Presentation title}
  13.  
  14. \begin{document}
  15. % For every picture that defines or uses external nodes, you'll have to
  16. % apply the 'remember picture' style. To avoid some typing, we'll apply
  17. % the style to all pictures.
  18. \tikzstyle{every picture}+=[remember picture]
  19.  
  20. % By default all math in TikZ nodes are set in inline mode. Change this to
  21. % displaystyle so that we don't get small fractions.
  22. \everymath{\displaystyle}
  23.  
  24. \begin{frame}{Rigid body dynamics}
  25. \frametitle{Rigid body dynamics}
  26.  
  27. \tikzstyle{na}=[baseline=-.5ex]
  28.  
  29. %% 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.
  30. \begin{equation*}
  31. \vec{a}_p = \vec{a}_o+\frac{{}^bd^2}{dt^2}\vec{r} +
  32. 2\vec{\omega}_{ib}\times\frac{{}^bd}{dt}\vec{r}
  33. + \vec{\alpha}_{ib}\times\vec{r} + \vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})
  34. \end{equation*}
  35. \end{frame}
  36.  
  37. \begin{frame}
  38. \frametitle{Rigid body dynamics}
  39.  
  40. \tikzstyle{na}=[baseline=-.5ex]
  41.  
  42. %% 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.
  43. \begin{equation*}
  44. \vec{a}_p = \vec{a}_o+\frac{{}^bd^2}{dt^2}\vec{r} + \pause
  45. \tikz[baseline]{
  46. \node[fill=blue!20,anchor=base] (t1)
  47. {$ 2\vec{\omega}_{ib}\times\frac{{}^bd}{dt}\vec{r}$};
  48. } + \pause
  49. \tikz[baseline]{
  50. \node[fill=red!20, ellipse,anchor=base] (t2)
  51. {$\vec{\alpha}_{ib}\times\vec{r}$};
  52. } + \pause
  53. \tikz[baseline]{
  54. \node[fill=green!20,anchor=base] (t3)
  55. {$\vec{\omega}_{ib}\times(\vec{\omega}_{ib}\times\vec{r})$};
  56. }
  57. \end{equation*}
  58.  
  59. \begin{itemize}[<+-| alert@+>]
  60. \item Coriolis acceleration
  61. \tikz[na] \node[coordinate] (n1) {};
  62. \item Transversal acceleration
  63. \tikz[na]\node [coordinate] (n2) {};
  64. \item Centripetal acceleration
  65. \tikz[na]\node [coordinate] (n3) {};
  66. \end{itemize}
  67.  
  68. % Now it's time to draw some edges between the global nodes. Note that we
  69. % have to apply the 'overlay' style.
  70. \begin{tikzpicture}[overlay]
  71. \path[->]<1-> (n1) edge [bend left] (t1);
  72. \path[->]<2-> (n2) edge [bend right] (t2);
  73. \path[->]<3-> (n3) edge [out=0, in=-90] (t3);
  74. \end{tikzpicture}
  75. \end{frame}
  76. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement