SHARE
TWEET

Untitled

a guest Jul 18th, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{article}
  2. usepackage{tikz}
  3. usetikzlibrary{positioning,tikzmark}
  4. % positioning used for above= and below=
  5. % tikzmark used for subnode
  6.  
  7. begin{document}
  8. begin{tikzpicture}[remember picture]
  9.   node{$
  10.     subnode{sign1}{$color{red}-$}
  11.     3
  12.     mathbin{subnode{minusoperator}{$color{blue}-$}}
  13.     subnode{two}{$2$}
  14.     =
  15.     subnode{sign2}{$color{red}-$}
  16.     5
  17.   $};
  18.   node[above=4mm of two] (minussigntext) {
  19.     color{red}  Minus symbol as sign
  20.   };
  21.   node[below=4mm of two] (minusoperatortext) {
  22.     color{blue} Minus symbol for subtraction
  23.   };
  24.   draw [-] (minussigntext)     to [out=230,in= 90] (sign1);
  25.   draw [-] (minussigntext)     to [out=310,in= 90] (sign2);
  26.   draw [-] (minusoperatortext) to [out=110,in=270] (minusoperator);  
  27. end{tikzpicture}
  28. 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