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

Lesson - LaTex Display in response

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Ensure that Mathjax filter is On and TeX is Off.

      1. Create a course.
      2. Enrol 3 students.
      3. Add a Lesson activity (use settings below).
        • Flow control / Allow student review = "Yes"
        • Flow control / Provide option to try a question again = "Yes"
        • Flow control / Maximum number of attempts = "6"
      4. Edit the Lesson activity and Multichoice question page.
        • Page title: Question with formula
        • Page contents: Please choose your answer:
        • Answer 1: $$x= \frac {17}{12} $$ and $$x= \frac{13}{12} $$
        • Response: good
        • Answer 2: $$x= \frac{17} {12} $$ and $$x= \frac{13}{19} $$
        • Response: great
      5. Log in as student01.
      6. Select one (1) of the two (2) possible answers and click the "Submit" button.

      Result:

      1. Without the patch: You will see "Your answer : $$x= \frac{17} {12} $$ and $$x= \frac{13}{19} $$"
      2. With the patch: You should see the formula/notation rendered correctly

      Enable (set to On) TeX notation at Site administration / Plugins / Filters / Manage filters. Ensure Mathjax is On as well.

      1. You may use the same steps above.

      Result:

      1. Without the patch: You will see "Your answer : x= \frac{17} {12} and x= \frac{13}{19} "
      2. With the patch: You should see the formula/notation rendered correctly

      Case for image and mp3 files:

      • Another testing case would be to use an image file and mp3 file in the Answer field. This should be displayed correctly as well.
      Show
      Ensure that Mathjax filter is On and TeX is Off. Create a course. Enrol 3 students. Add a Lesson activity (use settings below). Flow control / Allow student review = "Yes" Flow control / Provide option to try a question again = "Yes" Flow control / Maximum number of attempts = "6" Edit the Lesson activity and Multichoice question page. Page title: Question with formula Page contents: Please choose your answer: Answer 1: $$x= \frac {17}{12} $$ and $$x= \frac{13}{12} $$ Response: good Answer 2: $$x= \frac{17} {12} $$ and $$x= \frac{13}{19} $$ Response: great Log in as student01. Select one (1) of the two (2) possible answers and click the "Submit" button. Result: Without the patch: You will see "Your answer : $$x= \frac{17} {12} $$ and $$x= \frac{13}{19} $$" With the patch: You should see the formula/notation rendered correctly Enable (set to On) TeX notation at Site administration / Plugins / Filters / Manage filters. Ensure Mathjax is On as well. You may use the same steps above. Result: Without the patch: You will see "Your answer : x= \frac{17} {12} and x= \frac{13}{19} " With the patch: You should see the formula/notation rendered correctly Case for image and mp3 files: Another testing case would be to use an image file and mp3 file in the Answer field. This should be displayed correctly as well.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE, MOODLE_33_STABLE
    • Pull Master Branch:
       MDL-51745-master

      Description

      When using LaTex in Lessons the Response to Questions yields the LaTex code instead of mathematical symbols to students.

        Attachments

        1. pic1.png
          pic1.png
          84 kB
        2. pic2.png
          pic2.png
          86 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Sep/17