Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. documentclass[12pt]{article}
  2. usepackage{tikz}
  3. usetikzlibrary{calc,shapes.callouts,shapes.arrows}
  4. newcommand{bubblethis}[2]{
  5. tikz[remember picture,baseline]{node[anchor=base,inner sep=0,outer sep=0]%
  6. (#1) {underline{#1}};node[overlay,cloud callout,callout relative pointer={(0.2cm,-0.7cm)},%
  7. aspect=2.5,fill=yellow!90] at ($(#1.north)+(-0.5cm,1.6cm)$) {#2};}%
  8. }%
  9.  
  10. begin{document}
  11. bubblethis{B}{I know X}
  12. end{document}
  13.  
  14. documentclass[12pt]{article}
  15. usepackage{tikz}
  16. usetikzlibrary{calc,shapes.callouts,shapes.arrows}
  17. newcommand{bubblethis}[2]{
  18. tikz[remember picture,baseline]{node[anchor=base,inner sep=0,outer sep=0]%
  19. (#1) {#1};node[overlay,cloud callout,callout relative pointer={(-0.2cm,-0.2cm)},%
  20. aspect=1.5,fill=yellow!90] at ($(#1.north)+(0.8cm,0.4cm)$) {#2};}%
  21. }%
  22.  
  23. newcommand{bubble}[3]{
  24. tikz[remember picture,baseline]{node[anchor=base,inner sep=0,outer sep=0] %
  25. (#1) {#1};node[overlay,cloud callout,callout relative pointer= {(0.2cm,-0.4cm)},aspect=2.5,fill=red] at($(#1.north)+(-0.5cm,1.6cm)$) {#2};node[overlay,cloud callout, callout relative pointer={((-0.4,-0.3))},aspect=3,fill=green] at($(#1.north)+(2cm,4cm)$) {#3};}
  26.  
  27.  
  28. }
  29.  
  30. begin{document}
  31. vspace*{4cm}
  32. centering
  33. bubble{B}{I know}{bubblethis{A}{B}}
  34. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement