代码之家  ›  专栏  ›  技术社区  ›  Att Righ

Symphy打印输出:子表达式的颜色?

  •  1
  • Att Righ  · 技术社区  · 8 年前

    我了解Symphy可以输出适合渲染的数学: http://docs.sympy.org/latest/modules/printing.html

    例如:

    red_parts = sympy.var('x') ** 2 + sympy.var('y')
    other_parts = sympy.var('x')
    mathml(make_red(red_parts) + other_parts)) 
    

    这是可以实现的吗?

    我知道presentation mathml支持css…但Symphy似乎输出了浏览器似乎根本无法呈现的内容mathml。虽然我找到了一些 xsl stylesheets that do 我不知道乳胶产量是否有颜色的概念。

    一点背景

    我想玩游戏预览和突出部分的Symphy表达,因为我键入。

    0 回复  |  直到 8 年前
    推荐文章