MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

MathML of input expression


How can I get Mathematica to generate the Presentation 
MathML of the input expression rather than of the output
result.
Ex:
In[10]:= â?«x dx (the way this is entered is \[Integral] x \[DifferentialD] x)

Out[10]= x^2/2

In[11]:= XML`MathML`ExpressionToMathML[In[10],"Formats"->"PresentationMathML"]

Out[11]= <math xmlns='http://www.w3.org/1998/Math/MathML'>
<mfrac>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mn>2</mn>
</mfrac>
</math>

I was expecting the following output 
(since I asked for the MathML of the In[10] not Out[10]):
<math xmlns='http://www.w3.org/1998/Math/MathML'><mrow><mo>&Integral;</mo><mi>x</mi><mo>&InvisibleTimes;</mo><mrow><mo>&DifferentialD;</mo><mi>x</mi></mrow></mrow></math>

Thanks
Dave


  • Prev by Date: Re: mathematica to word
  • Next by Date: Re: Distinguished logarithm, branch cuts, etc.
  • Previous by thread: Re: Listable functions with two brackets f[][] (SubValues)
  • Next by thread: Re: MathML of input expression