vscode-markdown-preview-enhanced icon indicating copy to clipboard operation
vscode-markdown-preview-enhanced copied to clipboard

xypic in mathjax

Open tecunningham opened this issue 2 years ago • 1 comments

The Mathjax configuration setup recently changed, and I now can't figure out how to load the xypic extension. Previously I used this in the config file:

module.exports = {
  extensions: ['tex2jax.js'],
  jax: ['input/TeX','output/HTML-CSS'],
  messageStyle: 'none',
  tex2jax: {
    processEnvironments: false,
    processEscapes: true
  },
  TeX: {
    extensions: ['AMSmath.js', 'AMSsymbols.js', 'noErrors.js', 'noUndefined.js','xypic.js'],
    Macros: {
      bm: ["\\boldsymbol{#1}",1]
   }
  },
  'HTML-CSS': { availableFonts: ['TeX'] },
}

But the new config file has this format and I've tried a few things but can't get it to load xypic:

mathjaxConfig: {
      "tex": { },
      "options": { },
      "loader": { }
   }

tecunningham avatar Oct 25 '23 14:10 tecunningham

It's using MathJax V3 now, so you probably need to configure like this:

https://github.com/sonoisa/XyJax-v3

shd101wyy avatar Oct 26 '23 09:10 shd101wyy