Questions tagged [mathml]

An application of XML for describing mathematical notation and mathematical content

Mathematical Markup Language (MathML) is an application of XML for describing mathematical notations and capturing both its structure and content.

MathML deals not only with the presentation but also the meaning of formula components. Because the meaning of the equation is preserved separate from the presentation, how the content is communicated can be left up to the user.

  • "Presentation MathML" focuses on the display of an equation.
  • "Content MathML" focuses on the semantic meaning of the expression.

Inline MathML is also supported in HTML5 files in the upcoming versions of WebKit (Safari, Chrome), Gecko (Firefox) and Presto (Opera).

Useful references:

457 questions
5
votes
1 answer

Capture output from pexpect

I am having trouble with pexpect. I'm trying to grab output from tralics which reads in latex equations and emits the MathML representation, like this: 1 ~/ % tralics --interactivemath This is tralics 2.14.5, a LaTeX to XML translator, running on…
Tim
  • 1,013
  • 3
  • 17
  • 36
4
votes
1 answer

Is it possible to put HTML inside TeX/MathML with MathJax the way it can be done with jqMath?

Using jqMath you can use \html to insert html inside mathematical expressions, such as in \[y = ax^\html'<input type="text" size=1>'+bx+c\] This results in the following expression displayed to the user with a html input before the first…
4
votes
1 answer

Parsing with SAX and handling character entities

I am parsing a MathML expression with SAX (although the fact that it's MathML may not be completely relevant). An example input string is λ
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
4
votes
2 answers

using xsl to output the math expression

I want to use xslt to output the math expression from Mathml input. There must be some mistake in my transform. I don't know how to correct it. Could you help me? Should I use parameter or variable to control it? xml:
ZAWD
  • 651
  • 7
  • 31
4
votes
2 answers

Output sympy equation to word using mathml

It seems that MathML works OK with my word with simple copy and paste for strings such as 12 But when I try to use sympy's mathml printer: from sympy import…
Yuxiang Wang
  • 8,095
  • 13
  • 64
  • 95
4
votes
1 answer

Convert Mathematica equations into R code

Is there an easy way to convert Mathematica equations into R code? I have several equations that consist of dozens of terms with subscripts, superscripts, and greek letters. For example, here's a small part of one equation in Latex format: m_2_2=…
Anthony
  • 192
  • 10
4
votes
1 answer

How to convert a formula into MathML for use in a web page

I've spent hours online looking for a solution, and been down too many weird alley ways... Lets say I have a formula: x^2 + 3x + 32 I want to randomly choose to replace a part of the formula with a text box (I can do this) x^2 + [textbox]x…
user230910
  • 2,353
  • 2
  • 28
  • 50
4
votes
1 answer

Math expressions to MathML

I am trying to build functionality as on this site where a user will enter a math expression in the text area and it will be rendered as MathML format. Example: Input expression string: cos(x^3) Then the expression should be converted to MathML…
Saurabh Palatkar
  • 3,242
  • 9
  • 48
  • 107
4
votes
1 answer

MathJax Rendering HTML input fields in MathML

I'm attempting to include html input fields such as: Within mathML equations. When I was originally creating and testing them locally on Firefox everything looked fine (natively…
Glynbeard
  • 1,389
  • 2
  • 19
  • 31
4
votes
2 answers

How to render MathML using C#

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.
Neosani
  • 162
  • 3
  • 9
4
votes
4 answers

How can I display mathematical expressions in WPF labels or panels?

I am writing software which displays a lot of mathematical content. As in windows forms it is already hard to set a subscript or a Greek letter in a label, I am thinking of switching to WPF. At the moment I am searching for the best way to render a…
LaRiFaRi
  • 159
  • 1
  • 8
4
votes
1 answer

Invoking Java Jar code from JNI in C++

I'm trying to emulate this (http://snuggletex.sourceforge.net/maven/xref/uk/ac/ed/ph/snuggletex/samples/MinimalExample.html) code inside my C++ language, in order to obtain natively some LaTeX to MathML conversion of mathematical formulæ, but after…
jackb
  • 695
  • 8
  • 26
4
votes
1 answer

How to accept MathML from Windows Math Input Panel?

The question How do i accept MathML? already explains how to handle output from Windows 7 and Windows 8 Math Input Panel using native Windows code. Is it possible to do the same with any web browser using just JavaScript (that is, no silverlight or…
Mikko Rantalainen
  • 14,132
  • 10
  • 74
  • 112
4
votes
4 answers

Can we get MathML output from MathJax

I was wondering if there are ways to convert MathJax output to MathML. I read through several articles that saying MathJax supports MathML. I can also see the option 'Show MathML' when I right click the MathJax formulas. My question is, can I get…
user1988439
  • 41
  • 1
  • 2
4
votes
1 answer

Display Openmath in a webpage

I'm surprised that I can't find this question answered already. If it has been covered please let me know. I'm currently using the MathDox Formula Editor (here) to allow users to directly manipulate equations on a webpage. The editor works by…
Hierophect
  • 327
  • 1
  • 2
  • 15