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

Consider changing the Matching question type, to use something other than standard HTML <select> elements, so choices can contain content like TeX

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.11.5
    • Quiz
    • MOODLE_311_STABLE

      It looks like the answer part in Matching type problems is not able to render LaTex.

      When I looked into this, the issue is that to render the dropdown, moodle is using a select-option tag in HTML and the option tag doesn't allow any other tags inside it. So MathJax is not able to render the LaTex inside the dropdown. 

      I created a custom dropdown using bootstrap and JavaScript. Then I made the original dropdown hidden and synchronized the custom dropdown with the original dropdown. Hence I was able to render the LaTex inside it.

      I tested and it was working properly both for students and teachers. The teacher was able to grade properly.

       

      Is this solution acceptable?

        1. latexRender.png
          58 kB
          Neeraj Patil
        2. latexworking.png
          83 kB
          Neeraj Patil

            Unassigned Unassigned
            vishalrao Vishal Rao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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