# Add configurable setting for path to mimetex binary under the TeX notation section

XMLWordPrintable

#### Details

• Type: Improvement
• Status: Closed
• Priority: Minor
• Resolution: Fixed
• Affects Version/s: 2.5, 2.6
• Fix Version/s:
• Component/s:
• Labels:
• Testing Instructions:
Hide
1. Install packages in your system that provide the following executable files:
1. latex
2. dvips
3. convert
4. mimetex.cgi
2. Navigate to Settings > Site administration > Plugins > Filters > Manage filters
3. Change the setting for the Algebra notation filter to On
4. Change the setting for the TeX notation filter to On
5. Click on the Settings link for the TeX notation filter
6. Enter the path for the latex, dvips and convert binaries that you install in step #1 (leave mimetex empty for now)
7. Switch the convert output format setting to PNG
8. Create a test Moodle course
9. Edit the summary information for a section in your test course, switch to the Edit HTML source mode and enter the following information:

 



Dragmath -- @@0/-2@@



Tex -- $$\frac{0}{-2}$$



10. After saving the changes you should see a missing image or an error message beside the Dragmath text and an image showing a 0 / -2 fraction beside the Tex text
11. Edit the TeX filter settings and specify the path to the mimetex binary that was installed in step #1
12. Purge the caches on your site
13. Navigate back to the test course created in step #8
14. You should see an the fraction 0 / -2 image rendered beside both bits of text in your edited section summary

Test 2:
compare how filter_tex settings page looks in 2.5 and 2.6 using RTL language and make sure all texts and values are aligned correctly.

Show
Install packages in your system that provide the following executable files: latex dvips convert mimetex.cgi Navigate to Settings > Site administration > Plugins > Filters > Manage filters Change the setting for the Algebra notation filter to On Change the setting for the TeX notation filter to On Click on the Settings link for the TeX notation filter Enter the path for the latex , dvips and convert binaries that you install in step #1 (leave mimetex empty for now) Switch the convert output format setting to PNG Create a test Moodle course Edit the summary information for a section in your test course, switch to the Edit HTML source mode and enter the following information: <p></p> <p><span style="font-size: large;"><strong>Dragmath</strong> -- @@0/-2@@</span></p> <p><span style="font-size: large;"><strong>Tex</strong> -- $$\frac{0}{-2}$$</span></p> After saving the changes you should see a missing image or an error message beside the Dragmath text and an image showing a 0 / -2 fraction beside the Tex text Edit the TeX filter settings and specify the path to the mimetex binary that was installed in step #1 Purge the caches on your site Navigate back to the test course created in step #8 You should see an the fraction 0 / -2 image rendered beside both bits of text in your edited section summary Test 2: compare how filter_tex settings page looks in 2.5 and 2.6 using RTL language and make sure all texts and values are aligned correctly.
• Affected Branches:
MOODLE_25_STABLE, MOODLE_26_STABLE
• Fixed Branches:
MOODLE_27_STABLE
• Pull Master Branch:
MDL-40939-master
• Pull Master Diff URL:

#### Description

Problem description:
Currently the mimetex binary comes bundled with Moodle. That binary is 32-bit and presents issues when running on 64-bit machines. Moodle will recognize a symbolic link to a 64-bit mimetex binary but that's not the ideal approach to solve this problem.

I've submitted patches for branches M23, M24, M25 and master that add the mimetex binary path as a configurable setting under
Site administration > Plugins > Filters > TeX notation
The new configured binary path will then be used for mimetex.

#### People

Assignee:
Tim Gus
Reporter:
Tim Gus
Peer reviewer:
Tyler Bannister
Integrator:
Damyon Wiese
Tester:
Jason Fowler
Participants:
Component watchers:
Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona)