LaTeX forum ⇒ Graphics, Figures & Tablesgraphic with boxes and arrows around numbers

Information and discussion about graphics, figures & tables in LaTeX documents.
hurzz
Posts: 2
Joined: Wed May 20, 2020 4:43 pm

graphic with boxes and arrows around numbers

Postby hurzz » Wed May 20, 2020 4:52 pm

Hello!
I would like to create a graphic exactly like on this image with latex. Is it possible?
Thanks for your help!
latex exemplo.jpeg
latex exemplo.jpeg (46.81 KiB) Viewed 112 times

Bartman
Posts: 68
Joined: Fri Jan 03, 2020 2:39 pm

Postby Bartman » Wed May 20, 2020 5:28 pm

Yes. TikZ is often used for this. In this case a matrix is the ideal choice.

hurzz
Posts: 2
Joined: Wed May 20, 2020 4:43 pm

Postby hurzz » Wed May 20, 2020 5:53 pm

Bartman wrote:Yes. TikZ is often used for this. In this case a matrix is the ideal choice.


Thanks for your unswer!

Any idea of how to go about drawing the arrow across elements in the matrix?

Bartman
Posts: 68
Joined: Fri Jan 03, 2020 2:39 pm

Postby Bartman » Wed May 20, 2020 6:12 pm

You will find the option matrix of nodes in the documentation. Thanks to the nodes now available in the cells of the matrix, their center can be addressed via an anchor and the arrows drawn. The arrows can be shortened with a suitable assignment to the shorten options and the arrows.meta library offers you the option of scaling arrows.

Crosspost


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 4 guests