Guest User

Untitled

a guest
Mar 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. documentclass[tikz]{standalone}
  2. usetikzlibrary{math}
  3.  
  4. begin{document}
  5. begin{tikzpicture}
  6. draw[gray!40!] (-0.5,-0.5) grid (6.5,4.5);
  7. tikzmath{
  8. int x1; int x2;
  9. x1 = 0; x2 = 2;
  10. }
  11. draw[black,thick] (x1,2) -- (x2,2);
  12. foreach X in {x1,x2}{
  13. X=X+3;
  14. }
  15. draw[black,thick] (x1,2) -- (x2,2);
  16. end{tikzpicture}
  17. end{document}
Add Comment
Please, Sign In to add comment