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

Prevent dvips from cluttering in the error log

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.9.9, 3.0
    • 2.9.4, 3.0.2
    • Filters
    • MOODLE_19_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MDL-23128-master
    • Hide

      Setup

      You need a moodle install with the tex filter configured, that is easier said that done:

      1. Disable the mathjax filter
      2. Install latex, dvips and convert libraries sudo apt-get install texlive-full
      3. Login as admin
      4. Enable tex filter (Settings -> Site administration -> Plugins -> Filters -> Manage filters)
      5. Click settings (next to tex filter) and make sure libraries point to right path
      6. Create a label in course paste:

        $$ \sqrt {x + y}
        $$
        

      7. Save and return to course
      8. Make sure you can see square-root x + y image.
      9. Inspect the image and make sure thats coming from filter/tex/pix.php and not mathjax

      If you don't get to that point, you've likely got your install misconfigured..

      Test
      The test involves tailing your apache error log and make sure your not getting 'non-errors' about dvips in there, this is just one example of how to do it:

      1. Ensure you've not got any pre-built tex by running rm -r moodledata/filter/tex/ and purging caches
      2. Open new incognito window (eliminate browser cache)
      3. Go to an atto editor and open the equation editor
      4. VERIFY: that the apache error log is not spammed with many informational messags about dvips
      Show
      Setup You need a moodle install with the tex filter configured, that is easier said that done: Disable the mathjax filter Install latex, dvips and convert libraries sudo apt-get install texlive-full Login as admin Enable tex filter (Settings -> Site administration -> Plugins -> Filters -> Manage filters) Click settings (next to tex filter) and make sure libraries point to right path Create a label in course paste: $$ \sqrt {x + y} $$ Save and return to course Make sure you can see square-root x + y image. Inspect the image and make sure thats coming from filter/tex/pix.php and not mathjax If you don't get to that point, you've likely got your install misconfigured.. Test The test involves tailing your apache error log and make sure your not getting 'non-errors' about dvips in there, this is just one example of how to do it: Ensure you've not got any pre-built tex by running rm -r moodledata/filter/tex/ and purging caches Open new incognito window (eliminate browser cache) Go to an atto editor and open the equation editor VERIFY: that the apache error log is not spammed with many informational messags about dvips

    Description

      line 124 proposed change: $command = "{$CFG->filter_tex_pathdvips} -q -R -E $dvi -o $ps"

      Attachments

        Issue Links

          Activity

            People

              poltawski Dan Poltawski
              woolardfa@appstate.edu Fred Woolard
              Andrew Lyons Andrew Lyons
              Andrew Lyons Andrew Lyons
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                11/Jan/16