I recently got DragMath to appear in the HTML editor, but when I create an equation and insert it to the HTML, it isn't converted into an image and instead remains in its coded form, for instance "1+2 \neq 4".
I did a bit of reading (primarily this forum discussion) to try and figure out what the problem is, and as far as I can tell a good place to start looking is Modules > Filter > Tex Notation. This page is telling me that the paths for latex and dvips binaries are not correct, although the convert binary seems to be. Right now they're at the default settings, but I don't know how to locate the binaries so I can correct the paths to them.
Any ideas? And thanks.
To make a long story short you need either some distribution of LaTeX on your server to be able to set those paths to executable binaries or you need to change permissions of executable Mimetex file in folder filter/tex (mimetex.exe for Windows servers, mimetex.linux for linux servers etc)
When you enable TeX filter moodle tries to convert tex notations between double dollars to images using first given latex, dvips and convert binaries and if they are not found moodle tries to use Mimetex.
It is also possible to output and use ASCIIMathML with DragMath but you may need to wait a while until a fully tested version of ASCIIMathML with image fallback finds out its way to moodle - read some posts from Mathematics forum about this subject - and some people use jsMath which does not require server side LaTeX or Mimetex either...
Then, if you want, you can return and dink about with Tex, though I am hoping we will some new developments in that arena. Where the binaries are located depends in no small part on your system, and doing a find from your system prompt is often the quickest way - however, take a look at the location that your install says they are not at and make that is the case. You may also want to zip and upload the results of your Tex debugger
Here's more detailed info on the debugging:
Show a graphic image of the algebraic expression rendered with mimetex: [works properly]
Show a graphic image of the algebraic expression rendered with Tex/Ghostscript: [error: see zip]
Show command execution output from the algebraic expression rendered with Tex/Ghostscript: [error: see zip]
Check Slasharguments setting: [displays properly for file.php?file=/1/pic.jpg]
I'll try installing asciimath here in a moment and let you know how it goes.
Thanks again, you guys are a huge help!
Now I followed the install instructions for asciimath, but I'm not sure how to actually use it; the documentation didn't explain that. I tried using some of the text code (like 7sqrt63 for example) in the HTML editor in Moodle, but it still came out as text and not an image.
Now, assuming that the company I'm working for doesn't know LaTex code, is DragMath still an option? To me it seems the most intuative. It seems like I would just have to get the Tex filter to work, which I'm unsure about. You guys know about that?
Thanks as always, thanks thanks thanks.
Please provide additional details such as asciimath location if you need additional help
Getting DragMath to work properly is getting to be a real bear. I have a fresh install of Moodle 1.9.5 and uploaded DragMath_v0.7.8.1 into the moodle root folder, whereby I unzipped within the godaddy.com site manager. I then backed up addminlib.php under the moodle > lib folder and added
'insertdragmath' => 'em.icon.dragmath.gif',underneath the line
'insertsmile' => 'em.icon.smile.gif',Now when I go to the Appearance > HTML editor page, I should see a DragMath icon that I can turn on or off in the HTML editor. Right now there is no icon, although it does say [ [insertdragmath] ] . Also, when I open the HTML editor there is no DragMath icon at all.
It seems as though I followed the instructions properly, but I'm confused as to why this isn't working seeing as how I'm running from a clean slate. Are there further instructions I'm missing?
If you need me to provide any additional information, I'd be more than happy to do so. DragMath seems like it will be perfect once it's up and running!
Thanks in advance, really.
Please check to make sure dragmath is in /lib/DragMath and that the icon is in /lib/editor/htmlarea/images
also, note that dragmath has new square root icon.
You are welcome to email a copy of your adminlib.php and your moodle URL to me.
dragmaths has been installed, the square root icon can be seen, when clicked can use the programme, but when click insert, the equation cannot be rendered, ie converted into the mathematical form. Need some help here. Spend so much of time installing and uninstalling Java and drag maths intergrator, v0 .7.8 for moodle 1.9x. Tq