SHARE
TWEET

Untitled

a guest May 21st, 2016 197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{article}
  2. \usepackage[paperwidth=10cm, paperheight=5cm, margin=1cm]{geometry}
  3. \usepackage{tikz}
  4. \usetikzlibrary{shapes}
  5.  
  6. \newcommand{\textCloud}[4][180]{% #1: angle        #2: fill color
  7.                                 % #3: text color   #4: text
  8.     \begin{tikzpicture}[overlay]%
  9.     \node[align = center, draw, fill=#2, text=#3, cloud callout, cloud puffs=17, cloud puff arc=140, callout pointer segments=3, anchor=pointer, callout relative pointer = {(#1:2cm)}, aspect=4, scale=0.5] at (2ex,0.5ex) {#4};%
  10.     \end{tikzpicture}
  11. }%
  12.  
  13. \pagestyle{empty}
  14. \begin{document}
  15. Aaaaaaaaaaaaaaaaaaaaah\textCloud{red}{white}{Thank you!}
  16.  
  17. Oooooooooooooooooooooh\textCloud[160]{blue}{white}{Thanks again!}
  18.  
  19. bla bla bla bla bla bla\textCloud[120]{gray}{blue}{Thanks yet again!}
  20. \end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top