Question about math equation

Aloulou00763's picture

hello , is a way to put mathématique equation in the slides of h5p , because i wrote equation by word , but h5p didnt accept it , how can i make h5p accept equation of math , as a question in the slides (like multiple choices make user choose the right equation  ) ... thanks 

Summary: 
Math symbol support
Issue Status: 
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
tomaj's picture

Hi,

Unfortionatly this isn't supported yet. (It has been asked for before too, like here).

It would be great if someone in the community could look into this. It would be super useful for many users in the sciences.

- Tom

Aloulou00763's picture

with your wordpress plugin , can make a latex equation by this extension https://srd.wordpress.org/plugins/mathtex-equation-editor/

tomaj's picture

Hi,

That's great if it works for you short term. :)

More long term, I hope we get support into the editor to support Math symbols.

- Tom

icc's picture

A similar issue can be seen here with some examples of how it can be done. 

Aloulou00763's picture

juste want to know the steps for adding the code in that link as well for make math equation working with h5p wordpress plugin thanks

icc's picture

Unfortunately, there's currently no drop-in solution for this. You'll have to add this yourself through a custom plugin or theme.

Hi,

I already made a custom plugin which is working, how can I add mathjax to the custom plugin?

Any help would be highly appreciated.

icc's picture

Please see the described solution in the comments here and let us know where you're having issues.

Thanks for the reply, do I still need wiris for mathjax to work? I hope you can help me on this as I am new to javascript and really need this plugin to work for my math themed E learning site (opigno).

icc's picture

No, you don't need Wiris. Wiris is an editor for creating or editing formulas. MathJax is a tool for rendering formulas for browsers that doesn't support this natively. MathJax supports different types of inputs, depending on how you configure it: http://docs.mathjax.org/en/latest/start.html

Thanks for the reply, may I ask what editors are available for h5p contents like opigno LMS? WIRIS is not free I hope there's an alternative as I tried some but it did not work. Thank you.

icc's picture

You can use any editor you like, all you need is a CKEditor plugin that outputs MathML. I would suggest searching for 'math' at the CKEditor plugins page. Converting/wrapping any third party editor into a CKEditor plugin should not be that big of a job either.

Thanks but none of them worked, I tried the Ckeditor builder and also the manual installation but the buttons/editors doesn't show up on the toolbar. Any idea what seems to be the problem? Thank you

icc's picture

You will need to provide the plugin through a custom plugin as you cannot directly modify the CKEditor bundled within H5P. There has been made a guide on how this can be done called WYSIWYG Text Editor Buttons. Step 6. is adding the plugin to the CKEditor config.

I hope this brings you further.

Plugin still not showing up after doing your suggestion, I hope you can assist me further. Thanks

icc's picture

Do you get any error messages in your browser's console(F12) or the web server's error_log?

I have tried to inject the math plugin to the custom button, the button shows up and it seems that it is trying to load the math plugin but whenever I am clicking the math editor button, it displays the homepage of my site instead of the math symbols. attached are the images when clicking the plugin button (M with red background button) and the console error. I am using FMathEditor plugin by the way. Thanks

Attachments: 
icc's picture

Thank you for sharing the images.
h, it seems that the plugin crashes for some reason. Perhaps something is missing or done in the wrong order. It's difficult to tell as I'm no CKEditor expert.

I am having this error (see attached image). Any ideas or suggestions?


Attachments: 
tomaj's picture

i18n stands for "Internationalization", and it means that your problem is related to the translation system.

- Tom

Is there any fix or any solution to the said error? I am not familiar with it. I attached the files the error is referring to if it will help.Thanks.




Attachments: 
tomaj's picture

Hi,

I'm not familiar with the fmath editor. Maybe you can find help in their forums.

Good luck!

- Tom

I also tried the solution on that thread but the button still does not appear. I really hope someone can help. Thanks