Ask Your Question
0

Obtaining an unmodified latex output via Sage

asked 2023-09-01 11:23:24 +0100

Kohlrabi gravatar image

updated 2023-09-01 11:31:33 +0100

I use the following in Sage to obtain latex output of a digraph:

G=DiGraph([(2, 1), (4, 1), (4, 0), (3, 4)])
display(G)
latex(G)

The picture of the digraph (via display) looks nice in Sage, but the latex code gives me bend edges.

Question: Is there a way to make Sage give me latex output that looks like the display in Sage? Or at least is it possible to give me output with straight edges instead of bend edges and make the head of the arrows bigger?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-09-01 15:18:53 +0100

eric_g gravatar image

Take a look at the LaTeX options for graphs section of Sage's documentation.

edit flag offensive delete link more

Comments

Thanks, I searched a bit and so far all solutions that work sadly delete the digraph structure and just give a graph somehow.

Kohlrabi gravatar imageKohlrabi ( 2023-09-01 15:46:54 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2023-09-01 11:23:24 +0100

Seen: 118 times

Last updated: Sep 01 '23