W3C home > Mailing lists > Public > www-math@w3.org > January 2011

Re: What is "f'(x)" as MathML?

From: Urs Holzer <urs@andonyar.com>
Date: Fri, 21 Jan 2011 11:32:25 +0100
To: "'www-math@w3.org'" <www-math@w3.org>
Message-Id: <201101211132.25916.urs@andonyar.com>
Hi

> Forgive me for asking a question that might already have been
> answered, but what is the 'correct' translation of the TeX notation
> mathematics "f'(x)" into presentation MathML?

Okay, just wanted to answer but David was faster.  What he wrote is 
equivalent to what I think is correct:

<math>
  <mrow>
    <msup>
      <mi>f</mi>
      <mo>&#x2032;</mo>
    </msup>
    <mo>&#x2061;</mo>
    <mrow>
      <mo>(</mo>
      <mi>x</mi>
      <mo>)</mo>
    </mrow>
  </mrow>
</math>

The invisible function application U+2032 and the prime U+2061 are 
documented here:
http://www.unicode.org/charts/PDF/U2000.pdf

Note that as far as I have seen it on this mailinglist (I am not part of 
the working group) you should use msup to place the accent, even if some 
MathML renderers make the prime too small.

Greetings
Urs
Received on Friday, 21 January 2011 10:33:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 January 2011 10:33:01 GMT