Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass[tikz,border=3.14mm]{standalone}
- usetikzlibrary{matrix,fit,positioning}
- begin{document}
- begin{tikzpicture}[font=sffamily]
- def mytext{blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah}
- matrix[matrix of nodes,nodes={text width=2.5 cm},row sep=5mm] (mat) {
- mytext & & & & \
- mytext & & & & \
- mytext & & & & mytext\
- & mytext & & & \
- & mytext & mytext & & mytext\
- mytext & & mytext & mytext &\
- };
- node[draw=blue,fit=(mat-2-1) (mat-3-1),inner sep=1pt]{};
- node[draw=red,fit=(mat-2-1) (mat-4-2) (mat-3-5),inner sep=3pt]{};
- node[draw=black,fit=(mat-2-1) (mat-5-5) (mat-6-4),inner sep=5pt]{};
- matrix[matrix of nodes,right=5mm of mat-1-1.east] (legend){
- |[cyan]| 1. duck & |[red]| 3. koala \
- |[blue]| 2. rabbit & |[green!60!black]| 4. anteater\
- };
- end{tikzpicture}
- end{document}
Add Comment
Please, Sign In to add comment