Had this working fine in Moodle 1.9 using jsMath. Desperately need this for summer remediation program
Just as a matter of curiosity, you had jsMath working on Moodle 1.9 and just days before your summer session you upgraded from Moodle 1.9 to 2.2?
And this is such a critically important issue that you searched the forums for your answer and reviewed this thread: http://moodle.org/mod/forum/discuss.php?d=163016 - but thought, hey, maybe if I just ask again the answer will be different.... that always worked for me, lol.
In the interim, having given it some thought, you decided to search the docs and the forums and realized just how Moodle displays TeX, recognized that you were not using the Moodle infrastructure before, and that while the Moodle TeX filter might be a bit of a dinosaur, you could at least turn it on and using the apporpriate tools, test it, perhaps installing a TeX distribution while you were at it.
However, something caught your eye, and you said to yourself, "What the hell, I'll just download and install Mauno's Moodle 2 math plugins, thereby availabing myself of access to jsxgraph, MathJax and a host of other Math features!" Whereupon, just as your finger was about to hit the Enter key, you changed your mind and decided to simply wait and see if someone else would fix this for you......
Still have the 1.9 server running fine. Expect for the math issues everything on 2.2 has been great. I am just another extremely overworked and underpaid teacher who is doing the best he can for a small school system with no money. Thanks for the help.
Your welcome. I think you will find Mauno's plugins resolve all your issues and then some (though you may want to check whether you wish to point the plugins at the "latest" link for MathJax and jsxgraph or to a specific version, though based on yur history here, I would suggest you stick with latest.
Looking at your argument from an economics perspective, you seem to be suggesting that teachers have an obligation to keep the public from having to pay the true cost of the education of their children. Consider the inconsistency in running open software on a Microsoft box - they pay a premium for a crappy COTS OS and then you do contortions to get open software running and feel forced to ask others to answer your questions instead of looking for yourself. For most Americans, anything obtained "cheaply" is "cheap".... According to some data I have seen Salem is ranked 14th in the nation as far as how far local teacher salary will go and I think the median salary is $50K with a total of 26% raises over the last ten years. Sounds like teachers there are doing relatively well......
Per suggestion I downloaded the mpluga.zip file. Then extracted and installed per the instructions leaving default settings in place. Went to the site and configured filters and editors as shown. Items created with the DragMath equation editor still do not render an image. I'm open to suggestions.
the initial question of course is whether Tex is showing in your moodle at al, without regard to the functioning of DragMath, and then whether DragMath is functioning to insert the correct TeX and tokens.
Can you share the html you added for pointers? Remember that this package replaces the Moodle editor so that you can do some great editing, but the display is handled by the additional html that you re adding. You can now add pointers to the latest cloud source for MathJax and jsxgraph. are you seeing a mathjax response to Tex in Moodle web pages at all?
btw, the hub config part of the html for mathjax can be sensitive.... the latest info on mathjax 2 is here: http://www.mathjax.org/docs/2.0/start.html and you can run mathjax without a config to test basic parsing of Tex
Oh, and please confirm you are not using IE to test the configuration.
I suppose it's only a matter of using correct tokens/delimiters. Default settings of Dragmath use double dollars while default settings of mpluga-package MathJax use @d and @i for displaymaths and inlinemaths. If I remember it correct jsMath filter was also using doubledollars like Tex filter and mathTran filter.
If you use the plugin package try to change delimiters from
Site administration > Plugins > Filters > Manage filters > settings of Math filter
You can also follow the link that Marc gave in his prevous post and there should be an example attached about simple configuration of mathjax that does not require the plugins... or see http://moodle.org/mod/forum/discuss.php?d=193064
There is finally one possible reason for failure - if you try to use both additional HTML and theme based configuration you may find yourself in a situation where MathJax is configured several times (check source in your browser).
Mauno, I am helping Mike work through the issues, and the deafult delimiter settings are in part what had confused him I think. But his problems point out some issues that need to be addressed in the documentation for the plugins, largely necessitated by the insistence that dragmath be linked to the TeX filter. I will get him sorted out, but I think we should use this as a means of identifying the obstacles for the new user.
The biggest problem is wanting to use double dollars with MathJax because one has legacy material to parse and still wanting to use DragMath. So, an initial note should address the little kludge for separating the two (http://moodle.org/mod/forum/discuss.php?d=193064), or specifically confirm that by swapping out tinyMCE with TinyMath that allows one to retain DragMath while also allowing one to turn off the TeX filter. From the sandpoint of a "progressive" installation, I think users should add the appropriate text to additionalhtml and confirm that MathJax and jsxgraph are working before moving on to install plugins.
Secondly there can be confusion between the use of a Hub config in additional html and use of the plugin fields for delimiters (the dialog you included above.) It is unclear if both are necessary or if one is simply setting the other and if so how. There are so many options available, it is very easy to get lost, so I am playing devil's advocate and just trying to follow docs. Since one very likely case is someone wanting to use double dollars with MathJax and DragMath so as not to have to redo all their legacy material, it would be nice if there were a specific set of simple instructons, a to z, that took the user through step by step and explained what they were accomplihsing in each step - AT and I tried to pursue such documentatin with the New gradebook back when, identifying the top 2 or 3 likely configurations users might be interested in, providing a step by step, as well as providing cross refs and additional info to clue the user in to what was being acomplished by each step.....
Also an issue, as we discussed years ago is the specifics of unzipping plugins. As you recall, I tried to do the dragmath zip so that it cold be simply placed in the moodle root, and then un zipping took care of putting everything where it should be without woprrying about copying this or that to the correct location. It is unclear from the docs how and where to unpack the zip files, nd my experience is that packing them so that they merely need to be un zipped from moodle resolves a grgeat deal of confusion.
I am surprised Colin has taken care of this already
Of course, the TeX filter should be fixed to both eliminate convert and to rovide a variable so that one can simply substitute a different token for the doub le dolar in the Tex filter, as opposed to having also edit all the regular expressions the filter uses for parsing
And, there should be two additional configuration files provided that allow you to set DragMath to use the default MathJax delimiter, or I suppose eventually, to allow one to set the delimiters universally. I think you were wokring your way towards that with the plugins, but frankly it has now become a bit convoluted, and the new user needs a step by step to get things up and running so that he can then explore options.
In Mike's case, he does not hve TeX installed and mimetex is not working, and he can get that fixed up, but there is of course no need if he wishes to use MathJax, nd as he used jsMath in the past, I am sure that MathJax will meet his needs. I added the necessary text in additionalhtml to invoke jsxgraph and mathjax (adding your default tokens in a Hub statement as well as doubledollars), and to illustrate the issue with TeX filter, left it on, with the expected result that double dollars are not parsed but link to texdebug.php while @i and @d do work (as noted eslewhere, Tex grabs the doubledollars first, so MathJax never sees them, and since Tex not working, the double dollars are never translated. Of course, if we then turn off TeX filter, DragMath goes away (thanks to, well, enough ranting......)
Of course, as with most users looign to preserve legacy TeX, Mike wants to have MathJax parse the double dollars AND have DragMath. Now the postings on the configuration are voluminous and very difficult to track. But what Mike would need to know is that he need not worry about turning off TeX filter if he wants to install plugina, because plugina replaces the editor, and in doing so allows the use of dragmath with Tex filter off. Mike also needs to understand how the Hub entries in additionalhtml are, or are not related to the delimiter entry for the MathJax plugin you show above.
In a nutshell, I think the docs need to be progressive and show the user how to decouple dragmath from Tex filter (http://moodle.org/mod/forum/discuss.php?d=193064) if that is all the user wants to accomplish. And then explain that this is unnecessary if one replaces tinyMCE. Lastly, the user has to understand the relationship betwen the insertion of any material in addtionalhtml and the plugin tabs for MathJax.
I am surprised Colin has taken care of this already
??? mm anticipation?? Usually, as I am a control freak, I like to know where things are placed. The idea of blindly unpacking something and hoping that the folder structure has not altered in any way, the plugin author has managed to get it all right, the files are not overwriting something critical is scary for a lot of people not familiar with their Moodle. It might all be OK, but until you have the conifdence that it can be trusted, it is still a dubious option.
BTW, I tried to make it clear so that when I made a mess of my test moodle I could reinstall it easily as I would never remember how to do it . If this actually works then I am glad that someone else can use it too. And I have been tied up on rewiting a lot of curriculum resources for inclusion on Moodles, and have not been paying a lot of attention here so I hope that things are still relevant. If they are not, just change them.. Cheers..
I was just giving you the dig over the TimyMath Docs..... I get a hoot everytime I look at that, lol. I think you can probably get Helen to move the TimyMath pages in the docs to TinyMath, and then the links to that page could be fixed See how much fun it is to do documentation, lol.
Re unpacking zips: yes, typically folk in Moodle land have been asked to unzip some place outside of Moodle and then copy in the directories. What I discovered with DragMath, however, was that things were getting mangled on a regular basis. Part of this because with there were some files to be swapped out, as oppposed to whole directories, but people were making mistakes and things would get gnarly. So, I packaged everything so that you could simply put it in your Moodle root and unpack, setting the app to overwrite, and, Bob's your Uncle, there were no further issues. Best practice? Well I would prefer if plugins were handled by a plugin admin interface like WordPress, and Moodle may get there at some point. In any event, we should be very clear on how the plugins are packaged.
As long as plugins are added typically by this method (adding new directories to special directories) there should be a generic document explaining how to do this and how Modle addresses this, and then docs provided with respect to plugins can reference that page ......
Damn.. and I was bineg so caefrul, to spell tghins rgigt too... afta awl Engrish is mi ferst langwage.
This keeps sending me an email every time one posts. How can I stop it?
Hernán, if you look just under the editing dialogue, you will see a box named "Subscription" It has a dropdown list that says:
Send me email copied of posts to this forum"
"I don't want email copies of posts to this forum"
Select the don't option.
Its the water there in Oz, I've been told
Never touch the stuff myself, if you ever come here you will understand why!