Ask Your Question

Revision history [back]

Typeset latex in SMC

In the classical Sage notebook there is the "view" command that can be used to e.g. get a plot of a graph rendered by pdflatex. Is there an equivalent in SMC?

For example I want the following code to give me a graph plot rendered by pdflatex.

G=graphs.BullGraph()
G.set_latex_options(format='dot2tex', prog='dot')
view(G)

I can get the corresponding latex code in SMC by

latex(G)

but I have no idea how to render it.

click to hide/show revision 2
retagged

Typeset latex in SMC

In the classical Sage notebook there is the "view" command that can be used to e.g. get a plot of a graph rendered by pdflatex. Is there an equivalent in SMC?

For example I want the following code to give me a graph plot rendered by pdflatex.

G=graphs.BullGraph()
G.set_latex_options(format='dot2tex', prog='dot')
view(G)

I can get the corresponding latex code in SMC by

latex(G)

but I have no idea how to render it.