[tex4ht] another very strange problem using mathjax mode in tex4ht, footnote in table
Michal Hoftich
michal.h21 at gmail.com
Sat May 23 22:40:05 CEST 2020
Hi Nasser,
> Any idea why this happens?
Try this, it should prevent macros in you MathJax configuration from expansion:
-------
\Preamble{xhtml,p-width}
%V3.0 cobfiguration
\Configure{@HEAD}{\HCode{
<script>
window.MathJax = {
tex: {
maxBuffer: 40*1024,
\unexpanded{%
macros: {
sp: "^",
sb: "_",
noalign: ["\#1", 1],
medskip: "",
hypergeom: ["\\operatorname{hypergeom}"] %comment this line out
}},
autoload: {
color: [],
colorV2: ['color']
},
packages: {'[+]': ['noerrors']}
},
options: {
ignoreHtmlClass: 'tex2jax_ignore',
processHtmlClass: 'tex2jax_process'
},
loader: {
load: ['[tex]/noerrors']
}
};
</script>\Hnewline
}}
\begin{document}
\EndPreamble
----
Basically, I've just added the \unexpanded command.
Best regards,
Michal
More information about the tex4ht
mailing list.