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

Book should apply the MathJax filter to its print output

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7.2, 2.8.1
    • Fix Version/s: 2.7.4, 2.8.2
    • Component/s: Book
    • Labels:
    • Testing Instructions:
      Hide
      Prep
      1. Install the Hebrew (he) language pack.
      2. Ensure the MathJax filter is enabled for your site.
      3. Create a course.
      4. Create a Book activity with a sensible name and description, e.g.
        • title: BookTitle
        • description: BookDescription
      5. Populate the book with at least three chapters and one subchapter, each including some TeX (e.g. the following text):

        The circle is defined by the location of the centre \(({x_0},{y_0})\) and the radius of the circle (r). Note that in the relation above, the centre is defined to be positive values of x0 and y0. Important and useful relations: \[\begin{array}{l}Area = \pi {r^2}\\Circumference = 2\pi r\\Arc{\rm{ }}length = r\theta \end{array}\]
        

      Manual test

      On both Clean and Base, using both English(LTR) and Hebrew (RTL)

      1. Browse through your book and verify that each page's TeX is rendered by MathJax correctly.
      2. Select "Print book" from the Book administration menu such that a popup window opens with the book.
        • Verify that MathJax has rendered the TeX in the popup window correctly.
      3. In the popup window, click the link marked Print book. Your browser's print preview screen should appear.
        • Verify that the print preview display does not show the link you just clicked.
        • Verify that MathJax has rendered the TeX in the print preview display correctly.
      4. Close the window and select "Print chapter" from the Book administration menu.
        • Verify that MathJax has rendered the TeX in the popup window correctly.
      5. In the popup window, click the link marked Print book. Your browser's print preview screen should appear.
        • Verify that the print preview display does not show the link you just clicked.
        • Verify that MathJax has rendered the TeX in the print preview display correctly.
      6. Repeat the test with the book's numbering set to bullets, indented and none.
      Show
      Prep Install the Hebrew (he) language pack. Ensure the MathJax filter is enabled for your site. Create a course. Create a Book activity with a sensible name and description, e.g. title: BookTitle description: BookDescription Populate the book with at least three chapters and one subchapter, each including some TeX (e.g. the following text): The circle is defined by the location of the centre \(({x_0},{y_0})\) and the radius of the circle (r). Note that in the relation above, the centre is defined to be positive values of x0 and y0. Important and useful relations: \[\begin{array}{l}Area = \pi {r^2}\\Circumference = 2\pi r\\Arc{\rm{ }}length = r\theta \end{array}\] Manual test On both Clean and Base, using both English(LTR) and Hebrew (RTL) Browse through your book and verify that each page's TeX is rendered by MathJax correctly. Select "Print book" from the Book administration menu such that a popup window opens with the book. Verify that MathJax has rendered the TeX in the popup window correctly. In the popup window, click the link marked Print book . Your browser's print preview screen should appear. Verify that the print preview display does not show the link you just clicked. Verify that MathJax has rendered the TeX in the print preview display correctly. Close the window and select "Print chapter" from the Book administration menu. Verify that MathJax has rendered the TeX in the popup window correctly. In the popup window, click the link marked Print book . Your browser's print preview screen should appear. Verify that the print preview display does not show the link you just clicked. Verify that MathJax has rendered the TeX in the print preview display correctly. Repeat the test with the book's numbering set to bullets, indented and none.
    • Workaround:
      Hide

      Don't use the Book print output - just use the browser's print functions.

      Show
      Don't use the Book print output - just use the browser's print functions.
    • Affected Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_27_STABLE, MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-47329-master
    • Sprint:
      FRONTEND Sprint 15

      Description

      Book content containing TeX, for the MathJax filter to format is left unformatted in the Book module's "Print book" and "Print this chapter" admin options.

      To ensure correct output, when the filter is enabled, it should be applied to the print output.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  12/Jan/15