Ask Your Question

Jeremias Epperlein's profile - activity

2018-07-19 11:10:09 +0200 received badge  Nice Question (source)
2018-07-19 11:09:52 +0200 received badge  Self-Learner (source)
2018-07-19 11:09:52 +0200 received badge  Teacher (source)
2015-11-04 09:54:58 +0200 received badge  Editor (source)
2015-10-29 20:30:51 +0200 received badge  Student (source)
2015-10-29 17:48:27 +0200 received badge  Scholar (source)
2015-10-29 17:48:16 +0200 answered a question Typeset latex in SMC

To answer my own question for future reference:

Use

latex.eval(latex(G))

But this only works in SMC.

2015-10-29 17:28:20 +0200 asked a question 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.