MathJax - conflict with PHP

14 views
Skip to first unread message

Caio Chaim

unread,
Oct 5, 2016, 9:17:03 PM10/5/16
to MathJax Users
Hello everyone.

I would like to ask for help with a situation I face in my work.
Currently, we use the PHP as back end development, and insert the MathJax tool in our system, it simply ignores some things.

Some cases I decided changing the delimiters that were conflicting with some PHP variables, as they start with "$".

However, I had a problem right now that I could not identify why it is happening.

When you enter the following formula: f: \ mathbb {R} - \ {0 \} \ to \ mathbb {R}, the interpreter can not render the keys surrounding the zero number. Instead of rendering this: {0}, it only renders the number zero, thus: 0.

So, I wonder if someone could tell me what could be this conflict. Because MathJax is unable to render the formula correctly?

Thank you for disposal of all.
If something wrong let me know, because it is my first post here.

Regards,Digite o código aqui...

Caio Correa Chaim.

Peter Krautzberger

unread,
Oct 6, 2016, 3:08:32 AM10/6/16
to mathja...@googlegroups.com
Hi Caio,

Thanks for following up here. As mentioned the user group guidelines, a live example page is always best to enable people to help you.

Some cases I decided changing the delimiters that were conflicting with some PHP variables, as they start with "$".

If you are in control of the MathJax configuration MathJax to use any delimiters you like, see http://docs.mathjax.org/en/latest/options/tex2jax.html.

When you enter the following formula: f: \ mathbb {R} - \ {0 \} \ to \ mathbb {R}, the interpreter can not render the keys surrounding the zero number. Instead of rendering this: {0}, it only renders the number zero, thus: 0.

Spaces are important in this case. Instead of 

f: \ mathbb {R} - \ {0 \} \ to \ mathbb {R},

it should be  

f: \mathbb {R} - \{ 0 \} \to \mathbb {R}


Best regards,
Peter.


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages