Exemplo n.º 1
0
def _do_show(x):
    if sage.server.support.EMBEDDED_MODE:
        print '<html><div class="math">%s</div></html>'%sage.misc.latex.latex(x)
        return sage.misc.latex.LatexExpr('') # so no visible output
    if sage.plot.plot.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x)
Exemplo n.º 2
0
def _do_show(x):
    if sage.server.support.EMBEDDED_MODE:
        print '<html><div class="math">%s</div></html>' % sage.misc.latex.latex(
            x)
        return sage.misc.latex.LatexExpr('')  # so no visible output
    if sage.plot.plot.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x)
Exemplo n.º 3
0
def _do_show(x):
    if sage.doctest.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x, mode='display')
Exemplo n.º 4
0
def _do_show(x):
    if sage.doctest.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view
    view(x, mode='display')
Exemplo n.º 5
0
def _do_show(x):
    if sage.plot.plot.DOCTEST_MODE:
        return sage.misc.latex.latex(x)
    from latex import view

    view(x, mode="display")