Skip to content

Configuration Generator menuSettings #409

@Miniland1333

Description

@Miniland1333
  extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],
  TeX: {
    extensions: ["autobold.js","mhchem.js","color.js","cancel.js", "AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
  },
    "HTML-CSS": { linebreaks: { automatic: true , width: "90%"}, scale: 90, mtextFontInherit: false},
menuSettings: { zscale: "150%", zoom: "Double-Click" },
         SVG: { linebreaks: { automatic: true } }});

For the output, it should transform the menuSettings into options > menuOptions > settings : {}. Currently, it looks like the output that is generated is missing the settings:{} wrapper.

window.MathJax = {
  chtml: {
    scale: 0.9,
    mtextInheritFont: false
  },
  options: {
    menuOptions: {
      zscale: "150%",
      zoom: "Double-Click"
    },
    ignoreHtmlClass: 'tex2jax_ignore',
    processHtmlClass: 'tex2jax_process'
  },
  tex: {
    packages: ['base', 'mhchem', 'color', 'cancel', 'ams', 'noerrors', 'noundefined']
  },
  loader: {
    load: ['[tex]/mhchem', '[tex]/color', '[tex]/cancel', '[tex]/noerrors']
  }
};
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-svg.js" id="MathJax-script"></script>```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions