mathml

Greasemonkey script for inserting math in gmail

邮差的信 提交于 2019-12-09 05:59:59
问题 I wish an easy way to communicate mathematical equations with gmail. There's a javascript script called AsciiMath, which should translate Tex-like equations into standard mathML. I thought that it would be nice to use this script with GM. I thought that before sending the email, this script would convert all the TeX-like equations in your email to MathML. Thus the reader which is using FF (or IE with MathPlayer installed) would be able to easily read those equations. Ideally, I wish to

How do I render an equation from Math Input Panel in a WPF app and use MathML in the background?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 10:26:33
问题 I am doing a project in C# where users may specify an equation and have the app solve it. I want to use the Math Input Panel for the user to specify the equation, but the problem is that I dont know how to render the equation in the WPF app after the user presses Insert, since normal textboxes and textblocks wont display it. I have read up thoroughly on how I need to do this, but have come up short. I realize that I need my app to support MathML so that the equation can be displayed, but that

Linq to Xml and custom xml entities

和自甴很熟 提交于 2019-12-08 07:29:09
问题 I want to create a MathML document from an expression tree using Linq to xml, but I cannot figure out how to use the MathML xml entities (such as &ApplyFunction; and &InvisibleTimes): When I try to create directly a XElement using XElement xe = new XElement("mo", "&InvisibleTimes"); it justs escapes the ampersand (which is no good). I also tried to use XElement.Parse XElement xe = new XElement.Parse("<mo>&InvisibleTimes</mo>"); but it fails with an System.XmlException: Reference to undeclared

Linq to Xml and custom xml entities

你。 提交于 2019-12-07 16:08:25
I want to create a MathML document from an expression tree using Linq to xml, but I cannot figure out how to use the MathML xml entities (such as &ApplyFunction; and &InvisibleTimes): When I try to create directly a XElement using XElement xe = new XElement("mo", "&InvisibleTimes"); it justs escapes the ampersand (which is no good). I also tried to use XElement.Parse XElement xe = new XElement.Parse("<mo>&InvisibleTimes</mo>"); but it fails with an System.XmlException: Reference to undeclared entity 'InvisibleTimes' How can I declare the entity or ignore the checks? As others have pointed out,

Alternative for python-mathdom

你。 提交于 2019-12-07 02:34:09
问题 I'd like to convert a MathML expression to an equation string in python, for which the MathDOM module should be good for. An example would be: <math xmlns="http://www.w3.org/1998/Math/MathML"> <lambda> <bvar><ci>A</ci></bvar> <bvar><ci>B</ci></bvar> <apply> <plus/> <ci>A</ci> <ci>B</ci> </apply> </lambda> </math> should map to "A + B". This should obviously work with more complex expressions. However, it is quite old and not working properly with new versions of the xml module (trying to

How to render MathML using C#

不打扰是莪最后的温柔 提交于 2019-12-06 05:54:07
问题 I am currently doing a project in C# that requires rendering MathML for the user. I can't seem to find anything on the topic that is useful. Any help appreciated. 回答1: You could call one of the rendering tools at MathMLCentral. That would save a whole lot of trouble coding up a renderer yourself. Google found a couple of MathML renderers, including a .NET one, but all cost >USD500. 回答2: if you can render in webview then you could use frameworks like http://www.mathjax.org/ Look into sample

Displaying Mathml equations

☆樱花仙子☆ 提交于 2019-12-06 01:37:02
问题 My browser, Firefox 3.6, seems to display the Mathml equations in the W3C test suite just fine. But if I copy the code into my webpage, like from here, all Firefox produces is something like x y x y instead of how it correctly rendered the W3C page. What am I missing here> EDIT : I just tried it in Chrome and Chrome failed the test itself by rendering it as x y x y . Needless to say, it rendered the math in my own webpage the same. EDIT 2 : I tried it on a new html document. Doesn't work: <

Alternative for python-mathdom

梦想与她 提交于 2019-12-05 08:04:04
I'd like to convert a MathML expression to an equation string in python, for which the MathDOM module should be good for. An example would be: <math xmlns="http://www.w3.org/1998/Math/MathML"> <lambda> <bvar><ci>A</ci></bvar> <bvar><ci>B</ci></bvar> <apply> <plus/> <ci>A</ci> <ci>B</ci> </apply> </lambda> </math> should map to "A + B". This should obviously work with more complex expressions. However, it is quite old and not working properly with new versions of the xml module (trying to include the wrong module structure, etc.) Does anyone know useful alternatives? Best solution so far:

How to evaluate MathML expressions? [closed]

有些话、适合烂在心里 提交于 2019-12-04 22:33:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Given some MathML content: <apply> <eq/> <ci>c</ci> <apply> <plus/> <ci>a</ci> <ci>b</ci> </apply> </apply> and std::map<std::string,std::double> cal; cal["a"] = 1.; cal["b"] = 2.; cal["c"] = 0; // does not matter what c is I wish to evaluate the MathML and retrieve the results. Is there any way to do this? 回答1:

Tools for converting LaTeX equations to Content MathML or OpenMath?

本秂侑毒 提交于 2019-12-04 11:33:11
问题 Do you know any open source tools or libraries (preferably Java, but that's not a strict requirement) in the GNU/Linux world that convert mathematical equations in LaTeX syntax to Content MathML or OpenMath? I need to convert tons of equations in batch mode, so I'm not looking for interactive apps. EDIT My focus is on the equations' semantics, so I cannot use Presentation MathML (unless there's a converter from Presentation MathML to Content MathML). Thanks in advance! 回答1: This might be what