Guest User

Untitled

a guest
Jun 20th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3. tikzset{
  4. arrow/.style = { -stealth, red, line width = 2mm,
  5. postaction = { draw, blue, line width = 1mm, shorten >=1mm }
  6. }
  7. }
  8. begin{document}
  9. begin{tikzpicture}
  10. draw[arrow] (0,0) -- (+1,+1);
  11. draw[arrow] (0,0) edge (-1,-1);
  12. end{tikzpicture}
  13. end{document}
  14.  
  15. documentclass{standalone}
  16. usepackage{tikz}
  17. tikzset{
  18. arrow/.style = {-stealth, draw=red, line width = 2mm,
  19. postaction = { draw=blue, line width = 1mm, shorten >=1mm }
  20. },
  21. earrow/.style={
  22. every edge/.style={arrow}
  23. }
  24. }
  25. begin{document}
  26. begin{tikzpicture}
  27. draw[arrow] (0,0) -- (+1,+1);
  28. draw[earrow] (0,0) edge (-1,-1);
  29. end{tikzpicture}
  30. end{document}
  31.  
  32. documentclass[border=20pt]{standalone}
  33. usepackage{tikz}
  34. usetikzlibrary{arrows.meta}
  35. tikzset{
  36. arrow/.style = {
  37. draw,
  38. red,
  39. stealth-stealth,
  40. line width = 2mm,
  41. postaction = {
  42. draw,
  43. blue,
  44. line width = 1mm,
  45. shorten >=1mm,
  46. shorten <=1mm,
  47. stealth-stealth
  48. }
  49. }
  50. }
  51. begin{document}
  52. begin{tikzpicture}
  53. draw[arrow] (-1,-1) -- (1,1);
  54. draw[arrow] (1,-1) -| (3,1);
  55. draw[arrow] (4,-1) .. controls +(right:2cm) and +(down:2cm) .. (6,1);
  56. end{tikzpicture}
  57. end{document}
Add Comment
Please, Sign In to add comment