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

Lesson - LaTex Display in response

XMLWordPrintable

    • MOODLE_29_STABLE, MOODLE_33_STABLE
    • MOODLE_32_STABLE, MOODLE_33_STABLE
    •  MDL-51745-master
    • 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.

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

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

            jebarvia Joshua Ebarvia
            ArmorBearerSlave@gmail.com Eric D Brass
            Simey Lameze Simey Lameze
            Andrew Lyons Andrew Lyons
            Damyon Wiese Damyon Wiese
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

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