On 11/01/2012 23:37, Randeep Singh wrote:
> Sorry that is the wrong way around, only my displaymath is working not
> the inline math in the ajax called code?!?
>
> I am confused.
>
> On Jan 11, 10:35 pm, Randeep Singh<cloudt...@gmail.com> wrote:
>> Thank you Fr�d�ric, this works, but my custom configuration for
The fact that most of the math was being processed shows that the
MathJax Typeset() call was working. The problem appears to be with
the delimiters you are using. I suspect that there is an encoding
issue and that your ajax script is not getting the pound symbol (₤)
to your web page properly. (If I understand correctly, Javascript
uses UTF-16 encoding, but perhaps you are getting UTF-8 from the php
script?) The fact that you are seeing diamond-with-question-marks
instead of pound-currency-symbols suggests that they are not being
transferred or inserted correctly. You need to check that what you are
getting from the script actually includes the pound signs (try
console.log(request.responseText) and see if it has the pound sign).
Can you use something else to delimit the mathematics? Something that
is in the lower 256 characters rather than unicode U+20A4? Is there a
reason that you need to use three different sets of delimiters for
each type of mathematics?
Davide
Davide