pele_mele:stack_exchange:stack_overflow:62270358
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédente | |||
| pele_mele:stack_exchange:stack_overflow:62270358 [2024/11/23 04:02] – supprimée - modification externe (Date inconnue) 127.0.0.1 | pele_mele:stack_exchange:stack_overflow:62270358 [2024/11/23 04:02] (Version actuelle) – ↷ Nom de la page changé de pele_mele:stack_exchange:stack_overflow:stackoverflow-62270358 à pele_mele:stack_exchange:stack_overflow:62270358 alexis | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | ====== How to define a macro to interpret a unicode character with Mathjax ====== | ||
| + | I have the following markup in my page: | ||
| + | |||
| + | <code html> | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | When MathJax tries to render it, I have the following error: | ||
| + | |||
| + | > Missing or unrecognized delimiter for \left | ||
| + | |||
| + | I figured that the left floor (⌊) and right floor (⌋) unicode characters are what is not recognized in my expression because when I replace them with \lfloor and \rfloor, it's working properly. | ||
| + | |||
| + | My MathJax configuration is the following: | ||
| + | |||
| + | <code javascript> | ||
| + | window.MathJax = { | ||
| + | tex: { | ||
| + | inlineMath: [[' | ||
| + | displayMath: | ||
| + | } | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | I've tried to add macros to interpret the unicode characters with the following configuration with no luck: | ||
| + | |||
| + | <code javascript> | ||
| + | window.MathJax = { | ||
| + | tex: { | ||
| + | inlineMath: [[' | ||
| + | displayMath: | ||
| + | macros: { | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | Knowing that I can't change the markup because I not the one maintaining it and I have no way of changing it, is there a configuration that will allows me to make it work. | ||
| + | |||
| + | <WRAP info> | ||
| + | [[https:// | ||
| + | </ | ||
