Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.93 KB | None | 0 0
  1. documentclass{beamer}
  2. usetheme{metropolis}
  3. setbeamercovered{transparent}
  4. usepackage{ragged2e}
  5. usepackage{tikz}
  6. usetikzlibrary{positioning}
  7. begin{document}
  8. begin{frame}[fragile]
  9. frametitle{Intro}
  10. begin{tikzpicture}[
  11. bigcircle/.style={ % style for the circles
  12. text width=1.6cm, % diameter
  13. align=center, % center align
  14. line width=2mm, % thickness of border
  15. draw, % draw the border
  16. circle, % shape
  17. font=sffamilynormal % font of the year
  18. },
  19. desc/.style 2 args={ % style for the list nodes
  20. % this style takes two mandatory arguments, as indicated by "2 args", so is used as
  21. % desc={first arg}{second arc}
  22. % the first arg is the color of the title/heading, the second is the title itself
  23. text width=5cm, % means the node will be kind of like a 4cm wide minipage, and if the
  24. % text in the node becomes wider than that, it will wrap to the next line
  25. font=sffamilyfontsize{6.5}{7}selectfontRaggedRight, % set the font in the list
  26. label={[#1,yshift=-1.5ex,font=sffamilynormal]above:#2} % add the title as a label
  27. },
  28. node distance=10mm and 1mm % vertical and horizontal separation of nodes, when positioned with e.g. above=of othernode
  29. ]
  30. onslide<1->
  31. {
  32. node [bigcircle,red] (circ1) {A};
  33. node [desc={red}{A},below=of circ1] (list1) {
  34. begin{itemize}
  35. setlengthitemsep{4pt} % reduce space between items in list
  36. only<2> {item color{red}{Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}}
  37. onslide<3-> {item Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.}
  38. only<3> {item color{red}{Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}}
  39. onslide<4-> {item Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.}
  40. end{itemize}
  41. };
  42. }
  43. onslide<5->
  44. {
  45. node [bigcircle,orange,right=of list1] (circ2) {B};
  46. node [desc={orange}{B},above=of circ2] (list2) {
  47. begin{itemize}
  48. setlengthitemsep{4pt}
  49. only<6> {item color{orange}{Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.}}
  50. onslide<7-> {item Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.}
  51. only<7> {item color{orange}{item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
  52. onslide<8-> {item Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.}}
  53. end{itemize}
  54. };
  55. }
  56. % draw the line between circles
  57. onslide<5->
  58. {
  59. draw [dashed,black!80] (circ1) -- (circ2);
  60. }
  61. end{tikzpicture}
  62. end{frame}
  63. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement