Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{calc}
  4.  
  5. begin{document}
  6. begin{tikzpicture}
  7. coordinate (a) at (0,0);
  8. coordinate (b) at (1,-1);
  9. newlength{vsep}
  10. setlength{vsep}{0.5cm}
  11. coordinate (abovea) at ($(a) + (0,vsep)$);
  12. coordinate (aboveb) at (b |- abovea);
  13. node[fill=black,circle,inner sep=2pt] at (a) {};
  14. node[fill=black,circle,inner sep=2pt] at (b) {};
  15. draw (a) -- (abovea) -- (aboveb) -- (b);
  16. end{tikzpicture}
  17. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement