You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I configure MathJax={} when there is a missing error or other error to display original data instead of error.
This is a problem with the data:$h^2+left(\frac{8}{2}\right)^2=5^2$ , not MathJax's problem.
I just want to show original data:$h^2+left(\frac{8}{2}\right)^2=5^2$, not show the 'Missing.....' info.Due to this yellow warning, it doesn't look very clear to the users.
Technical details:
MathJax Version: 4.0.6
Client OS: (e.g., Mac OS X 14.3.1)
Browser: (e.g., Chrome)
I am using the following MathJax configuration:
window.MathJax={options: {enableMenu: false,menuOptions: {settings: {enrich: false,braille: false},},skipHtmlTags: ['script','noscript','style','textarea','pre','code','a'],ignoreHtmlClass: 'tex2jax_ignore',processHtmlClass: 'tex2jax_process',},loader: {load: ['[tex]/texhtml']},tex: {allowTexHTML: true,packages: {'[+]': ['texhtml']},inlineMath: [['$','$'],['\\(','\\)']],displayMath: [['$$','$$'],['\\[','\\]'],]},chtml: {displayOverflow: 'linebreak',displayAlign: 'left',// scale: 2.2,minScale: .65,mtextInheritFont: !0,merrorInheritFont: !0,skipAttributes: {},exFactor: 18,displayIndent: "0",matchFontHeight: 0,adaptiveCSS: !0},includeHtmlTags: {br: "\n",wbr: "","#comment": ""},linebreaks: {// options for when overflow is linebreakinline: true,// true for browser-based breaking of inline equationswidth: '95%',// a fixed size or a percentage of the container widthlineleading: 2,// the default lineleading in em unitsLinebreakVisitor: null,// The LinebreakVisitor to use},output: {linebreaks: {inline: true,},font: 'mathjax-modern'},startup: {ready(){const{ ChtmlMath }=MathJax._.output.chtml.Wrappers.math;deleteChtmlMath.styles['mjx-container[jax="CHTML"] mjx-break::after'];ChtmlMath.styles['mjx-container[jax="CHTML"] mjx-break']={'white-space': 'normal','font-family': 'MJX-BRK'};MathJax.startup.defaultReady();constadaptor=MathJax.startup.adaptor;MathJax.startup.document.outputJax.postFilters.add(({ data })=>{for(constbrkofadaptor.tags(data,'mjx-break')){brk.innerHTML=' ';}});}}}
Thanks for re-filing the issue with more information.
If you add '[tex]/noerrors' to the loader.load list, that may get you close to what you are looking for. That will show the original TeX code, but in red on a yellow background as with the error in your image, and without the original delimiters. So that might be sufficient for your needs.
You can add some CSS to your page to change the colors. For example:
Issue Summary
How do I configure MathJax={} when there is a missing error or other error to display original data instead of error.
This is a problem with the data:$h^2+left(\frac{8}{2}\right)^2=5^2$ , not MathJax's problem.
I just want to show original data:$h^2+left(\frac{8}{2}\right)^2=5^2$, not show the 'Missing.....' info.Due to this yellow warning, it doesn't look very clear to the users.
Technical details:
I am using the following MathJax configuration:
and loading MathJax via
Supporting information:
Error Info:
The text was updated successfully, but these errors were encountered: