i want to use xyjax on mathjax v3 through CDN

63 views
Skip to first unread message

放言垢

unread,
Mar 28, 2021, 2:17:53 AM3/28/21
to MathJax Users
i want to use xyjax on mathjax v3 through CDN

放言垢

unread,
Mar 28, 2021, 2:23:58 AM3/28/21
to MathJax Users
this is header i am currently thinking
----------------
<script>
window.MathJax = {
// Ajax.config.path["Contrib"] = "//cdn.mathjax.org/mathjax/contrib";
chtml: {
matchFontHeight: false
},
loader: {
load: ['[tex]/color', '[tex]/ams' /* , '[Contrib]/xyjax/xypic.js' */]
},
tex: {
inlineMath: [['$','$'], ["\\(","\\)"]],
packages: ['base', 'newcommand', 'color', 'ams' /* , 'xypic' */]
}
};
</script>
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.min.js"></script>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<meta http-equiv="X-UA-Compatible" CONTENT="IE=EmulateIE7" />
------------
but this is not work well.
what should i do?


2021年3月28日日曜日 15:17:53 UTC+9 放言垢:

Davide Cervone

unread,
Mar 29, 2021, 10:12:56 AM3/29/21
to mathja...@googlegroups.com
Here is a v3 configuration that should work for you:

  <script>
  MathJax = {
    loader: {
      load: ['[tex]/color', '[tex]/ams', 'xypic'],
      source: {
      }
    },
    chtml: {
      matchFontHeight: false
    },
    tex: {
      inlineMath: [['$','$'], ['\\(','\\)']],
      packages: ['base', 'newcommand', 'color', 'ams' , 'xypic']
    }
  };
  </script>
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js"></script>

This gives an explicit source for the xypic extension, using jsDelivr's ability to take a file directly from GitHub.

Davide



--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/fe0af54a-e622-4e28-a0f4-5690788c378en%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages