Graphics, Figures & Tablesgraphic with boxes and arrows around numbers

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

graphic with boxes and arrows around numbers

Post by hurzz »

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 1634 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

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

graphic with boxes and arrows around numbers

Post by Bartman »

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

graphic with boxes and arrows around numbers

Post by hurzz »

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: 369
Joined: Fri Jan 03, 2020 2:39 pm

graphic with boxes and arrows around numbers

Post by Bartman »

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
Post Reply