Guest User

Untitled

a guest
Nov 16th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{lipsum}
  3. usepackage{tikz}
  4. usetikzlibrary{tikzmark}
  5. begin{document}
  6. lipsum[1]
  7.  
  8. tikzmark{a}Hello world!tikzmark{b}
  9.  
  10. end{document}
  11.  
  12. relax
  13. savepointas{a}{pgfid1}{0pt}{0pt}
  14. savepicturepage{pgfid1}{1}
  15. pgfsyspdfmark {pgfid1}{9782558}{33796915}
  16. savepointas{b}{pgfid2}{0pt}{0pt}
  17. savepicturepage{pgfid2}{1}
  18. pgfsyspdfmark {pgfid2}{13243229}{33796915}
  19.  
  20. pgfsyspdfmark{pgfid<n>}{<x>}{<y>}
  21.  
  22. documentclass{article}
  23. usepackage{lipsum}
  24. usepackage{tikz}
  25. usetikzlibrary{tikzmark,calc}
  26. begin{document}
  27. lipsum[1]
  28.  
  29. tikzmark{a}Hello world!tikzmark{b}
  30.  
  31. tikz[overlay,remember picture]{
  32. draw[latex-] let p1=($(pic cs:a)-(current page.south west)$),
  33. n1={978.2558/x1},n2={3379.6915/y1} in
  34. (pic cs:a) -- ++(0,-1) node[below] {$(x1,y1)to(n1,n2) $};
  35. draw[latex-] let p1=($(pic cs:b)-(current page.south west)$),
  36. n1={1324.3229/x1},n2={3379.6915/y1} in
  37. (pic cs:b) -- ++(6,-1) node[below] {$(x1,y1)to(n1,n2) $};
  38. }
  39. end{document}
Add Comment
Please, Sign In to add comment