Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: Maths filters
    • Labels:
    • Testing Instructions:
      Hide
      1. Verify dvisvgm binary and other TeX binaries are installed in your OS. Visit admins settings for Tex notation filter. Check other binary paths settings (should detect binary and have check if executable). Change format to PNG. Disable MathJaxloader if necessary
      2. Enable TeX filter, edit a course page include TeX for example
        \[ \tan x=\frac{\sin x}{\cos x} \] 

        . Save and display, and make sure a PNG images are displayed.

      3. Switch format to SVG in TeX settings and save. Reload page and verify expression is displayed as a SVG image.
      4. Try TeX Filter debugger wwwroot/filter/tex/texdebug.php as admin (with debugging on) to see that SVG images are displayed and that the log files for all the commands are displayed. Change admin settings back to GIF/PNG and verify old functionality remains.
      5. To test MathJax fallback disable TeX filter. Configure and enable MathJaxloader. Check that mathematics is processed by MathJax. Re-enable Tex notation filter. Mathjaxloader should be moved above TeX notation filter. Reload page with mathematics. Images should appear first and should be replaced by MathJax output moments later.
      6. To test PNG fallback: Set set output to SVG and test with a browser that does not support SVG (IE8, android2.3) to see that PNG images are substituted. Verify images display even without MathJax.
      Show
      Verify dvisvgm binary and other TeX binaries are installed in your OS. Visit admins settings for Tex notation filter. Check other binary paths settings (should detect binary and have check if executable). Change format to PNG. Disable MathJaxloader if necessary Enable TeX filter, edit a course page include TeX for example \[ \tan x=\frac{\sin x}{\cos x} \] . Save and display, and make sure a PNG images are displayed. Switch format to SVG in TeX settings and save. Reload page and verify expression is displayed as a SVG image. Try TeX Filter debugger wwwroot/filter/tex/texdebug.php as admin (with debugging on) to see that SVG images are displayed and that the log files for all the commands are displayed. Change admin settings back to GIF/PNG and verify old functionality remains. To test MathJax fallback disable TeX filter. Configure and enable MathJaxloader. Check that mathematics is processed by MathJax. Re-enable Tex notation filter. Mathjaxloader should be moved above TeX notation filter. Reload page with mathematics. Images should appear first and should be replaced by MathJax output moments later. To test PNG fallback: Set set output to SVG and test with a browser that does not support SVG (IE8, android2.3) to see that PNG images are substituted. Verify images display even without MathJax.
    • Affected Branches:
      MOODLE_27_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-44925-master

      Description

      The TeX filter currently has an option produces images in GIF and PNG formats using convert binary from Imagemagick. The image quality produced is not very clear. Much better images for display on the web can be produced using dvisvgm to create SVG images. This method produces images of comparable quality to MathJax and is faster and able to handle more complex expressions. dvisvgm is part of texlive-extra-utils on Ubuntu, texlive-dvisvgm on Fedora, dvisvgm on Centos 6, and a MikTeX compatible binary is available at dvisvgm.sourceforge.net/Downloads. Imagemagick is only needed for GIF/PNG. TeX filter only needs latex, dvips, and dvisvgm binaries for SVG images.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Votes:
                  2 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    10/Nov/14