Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-85608

Mathjax 3.2.2 add setting mathjaxconfig to the initialization of mathjax

XMLWordPrintable

    • MOODLE_500_STABLE
    • Hide
      1. Create a math formula in an activity like $x_1 = 132$
      2. The formula should not be rendered
      3. Add to filter_mathjaxloader | mathjaxconfig the config:
          {   "tex": {     "inlineMath": [["$", "$"], ["\\(", "\\)"]],     "displayMath": [["$$", "$$"], [" [", " ]"]]   }

        }

            4. The math formula should now be rendered

      Show
      Create a math formula in an activity like $x_1 = 132$ The formula should not be rendered Add to filter_mathjaxloader | mathjaxconfig the config:   {   "tex": {     "inlineMath": [["$", "$"], ["\\(", "\\)"]],     "displayMath": [["$$", "$$"], [" [", " ]"]]   } }       4. The math formula should now be rendered

      Since in mathjax 3.2.2 the previous default delimiter for  "inlineMath": [["$", "$"] is not set anymore. I tried to set it in the mathjaxconfig, but wasnt sure of the correct Syntax in which to do this. Updon further analysis i find that the mathjaxconfig is passed to the amd module loader js, but i cannot see how it is treated.

      Also i was not able to add a delimiter via the additionaldelimiters setting, but this maybe another problem, i raised this ticket to make it possible to change the mathjax configuration.

      I did provide a patch, where i created a way the configuration of mathjax could be set.

            Unassigned Unassigned
            toga Tobias Garske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.