Advertisement
Guest User

Untitled

a guest
Aug 21st, 2014
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. documentclass[convert]{standalone}
  2. usepackage{tikz}
  3.  
  4. IfStandalone{
  5. usetikzlibrary{arrows,decorations.pathmorphing,decorations.markings,decorations.text,}
  6. tikzset{>=latex}
  7. }
  8. {
  9. % This command does not seem to have an effect in the main document
  10. usetikzlibrary{arrows,decorations.pathmorphing,decorations.markings,decorations.text,}
  11. tikzset{>=latex}
  12. }
  13.  
  14. begin{document}
  15. begin{tikzpicture}[node distance=3cm,]
  16.  
  17. %Define main nodes
  18. tikzstyle{main node}=[black,draw,circle,minimum size=2.cm,align=center]
  19.  
  20. % Draw actual nodes
  21. node [main node] (1) {Text 1};
  22. node [main node] (2) [ left of=1, ] {Text 2};
  23.  
  24. % Connecting Arrows
  25. draw [<-,postaction={decorate,decoration={text along path,raise=-2.5mm,text align=center,text={|tiny| Bending}}}] (2) to [bend right=-45] (1);
  26.  
  27. end{tikzpicture}
  28. end{document}
  29.  
  30. documentclass[]{beamer}
  31.  
  32. % It does NOT work with the following line (but it should)
  33. % I don't understand, because the IfStandalone{}{} command should take care of that.
  34. usepackage{standalone}
  35.  
  36.  
  37. % It does work if the sort option is enabled
  38. % (Of course, since the 'sort' option ensures that the 'subpreamble' is reprinted)
  39. %usepackage[sort=true]{standalone}
  40.  
  41.  
  42. begin{document}
  43.  
  44. %%%%%%%%%%%%%%%%%%%
  45. % Begin Unit %%%%%%%%%%%%
  46. %%%%%%%%%%%%%%%%%%%
  47. begin{frame}
  48. frametitle{Frame 1}
  49. framesubtitle{This one works flawlessly}
  50. begin{itemize}
  51. item First slide with no picture
  52. end{itemize}
  53. end{frame}
  54. % ---------------------
  55. % Notes ------------
  56. % ---------------------
  57. note{
  58. begin{itemize}
  59. item This works
  60. end{itemize}
  61. }
  62. % ---------------------
  63. % Skript ------------
  64. % -------------------------------
  65. mode<article>{
  66.  
  67. }
  68. %%%%%%%%%%%%%%%%%%%
  69. % End Unit %%%%%%%%%%%%%
  70. %%%%%%%%%%%%%%%%%%%
  71.  
  72. %%%%%%%%%%%%%%%%%%%
  73. % Begin Unit %%%%%%%%%%%%
  74. %%%%%%%%%%%%%%%%%%%
  75. begin{frame}
  76. frametitle{Frame 1}
  77. framesubtitle{This one won't work because of missing tikzlibrary}
  78.  
  79. includestandalone{StandalonePicture}
  80.  
  81. end{frame}
  82. % ---------------------
  83. % Notes ------------
  84. % ---------------------
  85. note{
  86. begin{itemize}
  87. item This works
  88. end{itemize}
  89. }
  90. % ---------------------
  91. % Skript ------------
  92. % -------------------------------
  93. mode<article>{
  94.  
  95. }
  96. %%%%%%%%%%%%%%%%%%%
  97. % End Unit %%%%%%%%%%%%%
  98. %%%%%%%%%%%%%%%%%%%
  99.  
  100. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement