drag math question is showing characters $$ { } and not the equation

drag math question is showing characters $$ { } and not the equation

by vanilla cup -
Number of replies: 5

Hi,

  We have installed dragmath and were able to add equations in math quiz.

  But while previewing the question, we see special characters  like this

    $$a^{2}+v^{2}$$  instead of the drag math equation of a square + v square.

We are not sure what we have to do to get it right for viewing the equations

Thanks for all of your help

Average of ratings: -
In reply to vanilla cup

Re: drag math question is showing characters $$ { } and not the equation

by John Isner -
Take a look at this screenshot from the DragMath article in the Moodle documentation wiki. The DragMath editor (the popup window) is a WYSIWYG editor. It displays mathematics in graphical form, like this: $$a^2 + v^2$$. However when you click the Insert button, the DragMath editor inserts a LaTeX string at the current position in the HTML editor, like this: $$$a^2 + v^2$$$. It would be nice if the image could be transferred, but this is not possible.

The DragMath editor is merely a aide for creating LaTeX strings. It lets you avoid typing LaTeX strings manually.
In reply to John Isner

Re: drag math question is showing characters $$ { } and not the equation

by vanilla cup -

Thank you for the reply

Then what needs to be done to make the equation visible on the webpage, for reading the LaTes strings.

Any other add-on need to be installed or setup need to be done to take care of that?

In reply to vanilla cup

Re: drag math question is showing characters $$ { } and not the equation

by John Isner -
what needs to be done to make the equation visible on the webpage

After you have inserted the LaTeX string into an HTML area, you will eventually save the page you are working on. For example, at the bottom of the page where I am typing now, there is a button labeled "Post to forum." After you save, the page will be fetched back into your browser, and you will see that the LaTeX has been converted to an image (if you decide to edit the page again, you will once again see the LaTeX).

The transformation from LaTeX to image (called "rendering") is done by the TeX filter. Rendering is performed every time the page is fetched. You must make sure the filter is turned on (site administration -> Modules -> Filters -> TeX Notation). By default, it is not turned on.
In reply to John Isner

Re: drag math question is showing characters $$ { } and not the equation

by vanilla cup -

 Thanks a lot, really appreciate the help.

 Turned the filter on and image is showing up fine.

In reply to vanilla cup

Re: drag math question is showing characters $$ { } and not the equation

by mike thiem -
thankyou it worked for me too
mighk