Mathematics tools
https://moodle.org/mod/forum/view.php?f=130
Including the text filters for MathML, TeX and Algebra notations.
Documentation: [[Mathematics]] and [[Mathematics tools FAQ]] Plugins directory: Search results: math
Before starting a new discussion topic, please check the [[Mathematics tools FAQ]] and try a forum search.
Moodleen(c) 2016 Moodle - Open-source learning platform | Moodle.orghttps://moodle.org/theme/image.php/moodleorgcleaned_moodleorg/core/1461705852/i/rsssitelogomoodle
https://moodle.org
14035How to disable mathjax preview in atto?
https://moodle.org/mod/forum/discuss.php?d=332495&parent=1339354
Tue, 03 May 2016 08:14:18 GMTby Éva Rácz. <p><p>Hello All,</p><p>I am upgrading from 2.2 to 3.0, and experiencing some problems with atto and formulas.</p>There are no problems if I simply create a new question and include some formula (by simply typing the equation and not with the eq editor) and then save it.<br />If, however, I reopen that same question for editing later, the previous formula doesn't appear as a tex code but a pretty preview and the html source contains a very long span starting with <span class="MathJax_Preview">. When I try to add another formula to the question text it becomes completely messed up, and even the original formula is changed (font type and size) if this new version is saved.<br /><br />I'm not sure whether this is an issue with atto. Is there a way to disable equation preview in the editor? So basically when I am editing I'd like to see the tex code but no html code. (In 2.2 there were no problems with this, although there were problems with tinyMCE messing up multilang content. In any case, I think it's not reasonable to expect that every teacher/question creator should resort to using "plain text area" as their text editor).<br /><br />I attached the text files containing the html source of the question and screen shots of the results (and in case it is the actual culprit, my mathjax config). I created the original question using the plain text area editor to make sure that nothing is modified at the first save, then changed the editor to atto when I reopened the question.<br /><br />Thank you for any insight into this problem.<br /></p>https://moodle.org/mod/forum/discuss.php?d=332495&parent=1339354Re: Vertical line in MathJax formulas
https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338811
Sat, 30 Apr 2016 12:06:38 GMTby Edward Bethel. <p><p>Thanks Daniel!</p><p>Works like a charm.</p></p>https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338811Re: Vertical line in MathJax formulas
https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338709
Fri, 29 Apr 2016 17:24:17 GMTby Daniel Thies. <p><p>The value in settings.php is just the default setting to be used during installation. After that the setting is stored in the <a href="https://moodle.org/mod/glossary/showentry.php?eid=15&displayformat=dictionary" title="Glossary of common terms: database" class="glossary autolink concept glossaryid5">database</a>. You should change it in Site settings -> Plugins -> Filters -> MathJax, not in the code.<br /></p></p>https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338709Re: Vertical line in MathJax formulas
https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338696
Fri, 29 Apr 2016 16:56:20 GMTby Edward Bethel. <p><p>Additionally, if you don't have access to upgrade Mathjax, you have two rough and ready solutions (they're not really ideal but if it's driving you crazy they work).</p><p>On the Mathjax.org site go to Documentation>Simple Integration. Click on the link "copy this snippet" and you should see the following mini-script: </p><p><script src='<a href="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>" class="_blanktarget">https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script></a>;</p><p>Copy the script and do one of the following:</p><p></p><ol><li>many of the newer themes allow you to install your own custom js in addition to custom <a href="https://moodle.org/mod/glossary/showentry.php?eid=13&displayformat=dictionary" title="Glossary of common terms: CSS" class="glossary autolink concept glossaryid5">css</a>. paste the script into the custom js window and save. this will ensure that mathjax loads for that theme</li><li>in whatever document you are using mathjax, switch to html view and paste this script at the top of the page (this will ensure that mathjax loads for that page).</li></ol><p>Neither of these solutions are elegant or ideal, but they will work if you can't upgrade mathjax and can't wait for the next moodle upgrade in which the mathjax upgrade will be bundled.</p><p>Hope this helps</p></p>https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338696Re: Vertical line in MathJax formulas
https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338692
Fri, 29 Apr 2016 16:46:54 GMTby Edward Bethel. <p><p>Thanks Tim!</p><p>This worked well - the problem was driving me crazy. I've got a question though. Before changing the httpurl and the httpsurl through the moodle administration interface, I tried to point to the upgrade using by editing the settings.php file in the mathjaxloader directory. This did not work however, no matter how many times I restarted Chrome and cleared the cache. I would rate my programming skills as rudimentary at best - I don't pretend to understand the underlying architecture very well at all. I use challenges like this to learn more about the Moodle backend in specific, and php and js in general (don't worry - these are demo environments, wouldn't dream of fiddling with our production site).</p><p>I am curious though, as I would have expected the admin settings in the Moodle interface to link directly to the settings.php file? What have I missed here?</p><p>Thanks for whatever clarification you can give.</p><p><br /></p></p>https://moodle.org/mod/forum/discuss.php?d=327190&parent=1338692STACK: Problems with float answers less than 10^(-10)
https://moodle.org/mod/forum/discuss.php?d=332089&parent=1337410
Mon, 25 Apr 2016 12:39:35 GMTby Mikko Vasko. <p><p>Hello,</p><p>this is probably a known problem:<br /></p><p>We have a problem with questions where the students need to enter a floating point number smaller than 10^(-10). Any answer smaller than 10^(-10) is graded "correct" by STACK.</p><p>I used the code <code>abs(sa-ta) < opt</code> in the answer variables, and it delivers correct interpretations.</p><p>Attached a screenshot and a question for testing.<br /></p><p>Cheers,<br />Mikko<br /></p></p>https://moodle.org/mod/forum/discuss.php?d=332089&parent=1337410Re: I cannot draw geometric shapes with Latex
https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337287
Sun, 24 Apr 2016 21:52:00 GMTby AL Rachels. <p><p>Thanks for the reminder, Daniel. Since I don't regularly use that stuff I tend to forget that. Most of my renders are just for reference displays so I have stuff to show when trying to explain to teachers who haven't used Moodle, just what can done with it. The last couple of years, I just keep the filters for MathJax, LaTeX and Algebra all on and set the filter for the particular Moodle item according to what it needs to be to get the output I want.<br /></p></p>https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337287Re: I cannot draw geometric shapes with Latex
https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337269
Sun, 24 Apr 2016 17:44:25 GMTby Daniel Thies. <p><p>The <a href="http://docs.moodle.org/en/Using_TeX_Notation" title="Moodle Docs - Using TeX Notation">Using TeX Notation</a> document uses a lot of functionality that is present in the <i>mimetex</i> binary. This was originally the only way that TeX was rendered, but now works as a fall back. Currently, the included binary does not work on 64bit systems. A native binary or compatibility lib need to be installed and configured. If you want to use that functionality, make sure <i>mimetex</i> is working in TeX notation filter and turn off MathJax.<br /></p></p>https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337269Re: I cannot draw geometric shapes with Latex
https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337257
Sun, 24 Apr 2016 16:22:38 GMTby Enrico Zogli. <p><p>Ok, Thanks a lot.</p><p>I'll try your suggestion.<br /></p></p>https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337257Re: I cannot draw geometric shapes with Latex
https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337243
Sun, 24 Apr 2016 15:27:28 GMTby AL Rachels. <p><p>I know that when you read those Using_Tex_Notation pages, it seems to imply they should all work right out of the box, as the saying goes. But in my experience, those things do not work by default, but must be setup on your system by modifying your LaTex preamble or your MathJax configuration so that they include the packages needed for drawing shapes and adding color. In fact some stuff, such as \line and \mbox, are blacklisted in Moodle, and to get them to work, you have to go and remove them from the $tex_blacklist in yourmoodle\filter\tex\lib.php down around line 73 in most Moodle versions.</p><p>These may or may not, work for you, especially the MathJax as I have it installed on my <a href="https://moodle.org/mod/glossary/showentry.php?eid=30&displayformat=dictionary" title="Glossary of common terms: server" class="glossary autolink concept glossaryid5">server</a> with some additions.</p><p><b>Here is my current LaTeX preamble:</b></p><p>\usepackage[latin1]{inputenc}<br />\usepackage{amsmath}<br />\usepackage{amsfonts}<br />\usepackage{tikz}<br />\usepackage{tkz-euclide}<br />\RequirePackage{amsmath,amssymb,latexsym,tikzpicture,pgffor}</p><p><b>And here is what I have in my MathJax configuration:</b></p><p>MathJax.Hub.Config({<br /> config: ["MMLorHTML.js", "Safe.js"],<br /> jax: ["input/TeX","input/MathML","output/HTML-CSS","output/NativeMML"],<br /> extensions: ["tex2jax.js","mml2jax.js","MathMenu.js","MathZoom.js"],<br /> TeX: {<br /> extensions: ["xypic.js","mhchem.js","color.js","AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"],<br /> },<br /> menuSettings: {<br /> zoom: "Double-Click",<br /> mpContext: true,<br /> mpMouse: true<br /> },<br /> errorSettings: { message: ["!"] },<br /> skipStartupTypeset: true,<br /> messageStyle: "none"<br />});<br /><br /><br /></p></p>https://moodle.org/mod/forum/discuss.php?d=332050&parent=1337243