Davide P. Cervone

Results 978 comments of Davide P. Cervone

For characters that aren't specifically defined as having a meaning in MathJax (like ^ and _), there are two places that determine what TeX class is used: the RANGES list...

Macros, once defined (either by hand, or by loading an extension, including by using `\require`) are permanent, and can't be removed from the TeX input jax. You would need to...

OK, here's what's happening: When the CHTML output jax is rebuilt, it ends up replacing the stylesheet that the original one had set up (and that included the CSS needed...

Well, for pages that you don't control, one way would be to enter ``` for (const jax of MathJax.Hub.getAllJax()) {jax.SourceElement().previousSibling.classList.add('notranslate')} ``` in the browser console after MathJax has finished typesetting...

PS, you could make the command above into a bookmarklet, or make a GreaseMonkey (or TamperMonkey) script to do it automatically on any page that loads MathJax.

@iamrahulkumar001, your example works for me (once the space in `` is removed). Can you link to your test page where it doesn't work for you?

@iamrahulkumar001, try using only `class="notranslate"` without the `math-tex` class as well. Maybe Google translate doesn't handle the multiple classes (I don't know, but it is worth a try).

@iamrahulkumar001, well, it seems, then, that this is an issue with Google Translate more than it is with MathJax. Perhaps this needs to be reported at the [php-google-translate](https://github.com/statickidz/php-google-translate-free) site, or...

@xrayn, Well, some expressions include `\text{}` calls containing text that probably *should* be translated. It is not clear how this should situation should be handled.

It looks like framer is replacing the page with the original page content after MathJax runs, wiping out the typeset mathematics after it was put in place. The page generates...