Guest User

Untitled

a guest
Oct 16th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. documentclass[tikz,border=3.14mm]{standalone}
  2. usetikzlibrary{matrix,fit,positioning}
  3. begin{document}
  4. begin{tikzpicture}[font=sffamily]
  5. def mytext{blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah}
  6. matrix[matrix of nodes,nodes={text width=2.5 cm},row sep=5mm] (mat) {
  7. mytext & & & & \
  8. mytext & & & & \
  9. mytext & & & & mytext\
  10. & mytext & & & \
  11. & mytext & mytext & & mytext\
  12. mytext & & mytext & mytext &\
  13. };
  14. node[draw=blue,fit=(mat-2-1) (mat-3-1),inner sep=1pt]{};
  15. node[draw=red,fit=(mat-2-1) (mat-4-2) (mat-3-5),inner sep=3pt]{};
  16. node[draw=black,fit=(mat-2-1) (mat-5-5) (mat-6-4),inner sep=5pt]{};
  17. matrix[matrix of nodes,right=5mm of mat-1-1.east] (legend){
  18. |[cyan]| 1. duck & |[red]| 3. koala \
  19. |[blue]| 2. rabbit & |[green!60!black]| 4. anteater\
  20. };
  21. end{tikzpicture}
  22. end{document}
Add Comment
Please, Sign In to add comment