what's wrong with my setting so that \dfrac not working?

230 views
Skip to first unread message

Elim Qiu

unread,
Sep 25, 2014, 4:09:37 PM9/25/14
to mathja...@googlegroups.com
url:   math.elinkage.net

MathJax Version: 2.4

Or something wrong with the version of  mybb?

Peter Krautzberger

unread,
Sep 25, 2014, 4:20:42 PM9/25/14
to mathja...@googlegroups.com
Hi,

The problem is some bad code and bad placement of the configuration -- see the docs for more information on how to configure MathJax.

Something like 

        <script type="text/x-mathjax-config">
          MathJax.Hub.Config({
           jax: ["input/TeX","output/HTML-CSS"],
           extensions: ["tex2jax.js","MathMenu.js","MathZoom.js"],
           tex2jax: {   
              inlineMath: [['$','$'],['\\(','\\)']], // uncomment to use $...$ for inline math
              processEscapes: 1                      // set to 1 to allow \$ to produce a dollar sign
            },
           TeX: {
              extensions: ["AMSmath.js","AMSsymbols.js"]
           }
          });
        </script>
        <script type="text/javascript" src="path-to-MathJax/MathJax.js">

should work. 

You might get better performance with a combined configuration file, e.g., this one. E.g.,

        <script type="text/x-mathjax-config">
          MathJax.Hub.Config({
           tex2jax: {   
              inlineMath: [['$','$'],['\\(','\\)']], 
              processEscapes: 1        
            }
          });
        </script>
        <script type="text/javascript" src="path-to-MathJax/MathJax.js?config=TeX-AMS_HTML-full">

would also suffice. Of course, you can also load things from the CDN.

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-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Elim Qiu

unread,
Oct 3, 2014, 4:04:02 PM10/3/14
to mathja...@googlegroups.com
Thanks a lot Peter for the comments. I do need to look at the document.
Reply all
Reply to author
Forward
0 new messages