Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. documentclass{standalone}
  2. usepackage{tikz}
  3. usetikzlibrary{patterns}
  4. usetikzlibrary{calc}
  5. begin{document}
  6. begin{tikzpicture}
  7.  
  8. tikzset{%
  9. miroir/.style = {%
  10. minimum width = 1cm,
  11. minimum height = .4cm,
  12. rectangle,
  13. transform shape,
  14. fill = gray!10,
  15. pattern = north east lines,
  16. append after command = {%
  17. pgfextra{%
  18. begin{pgfinterruptpath}[transform shape]
  19. draw[transform shape,
  20. very thin, fill=gray!10,shorten >=0.2bp, shorten <=0.2bp
  21. ]
  22. (tikzlastnode.north west)
  23. -- ++(0,.2)
  24. -- ($(tikzlastnode.north east)+(0,.2)$)
  25. -- (tikzlastnode.north east)
  26. --cycle;
  27. end{pgfinterruptpath}
  28. }
  29. }
  30. }
  31. }
  32.  
  33. node [miroir,transform shape,rotate=0] at (0,0) {};
  34. end{tikzpicture}
  35. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement