Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Equation import bug? #17

Open
enyedi opened this issue Feb 3, 2024 · 5 comments
Open

Equation import bug? #17

enyedi opened this issue Feb 3, 2024 · 5 comments

Comments

@enyedi
Copy link

enyedi commented Feb 3, 2024

Hi,

Several of our equations are imported without their inner parentheses. Of course, they are correctable in the converted MathML, once in Moodle.
I attached an example. It is "1/(φ∙(N-k+1))" in the docx file (attached), but becomes "1/(φ∙N-k+1)" in Moodle. Tested both in Moodle 3.11 and 4.3, same result.

I did not use the Word template, but exported some existing questions from Moodle, converted the doc file to docx, edited that and imported it back into Moodle. It works fine. I doubt that this is the cause.

I'm using "Microsoft® Word for Microsoft 365 MSO (Version 2401 Build 16.0.17231.20194) 64-bit".

Otherwise, this is a very efficient productivity-enhancing plugin for my colleagues. Thank you for sharing it.

equation bug demo.docx

@ecampbell
Copy link
Owner

This seems to happen as a result of the equation being converted to use the element, which shouldn't be used any more. The code to convert Word Equations into MathML was written by Microsoft, so I'll try to find out if they have updated it since I originally copied it.

@1991chandanKumar
Copy link

Sir,
I am facing the same problem. All the three brackets (), {}, [] are getting disappered in moodle and d is apperaring as ⅆ with double vertical and curly line.
Please check this Video: https://youtu.be/CrKBxZmNhtA
Word File: TRIAL.docx
WebScreenshot:
Screenshot 2024-04-26 215344

Please look into the prroblem as soon as possible.

@ecampbell
Copy link
Owner

Enyedi, Microsofts XSLT code for Word 365 hasn't changed, so that's why the error occurs.
Chandan, you must set the "Additional equation delimiters" field to "<math" on the "Local MathJax installation" settings page in your Moodle instance (Site administration > Plugins > Filters > MathJax) (cf. https://moodle/admin/settings.php?section=filtersettingmathjaxloader)

@1991chandanKumar
Copy link

Thanks sir, that resolved the issue..

@enyedi
Copy link
Author

enyedi commented Apr 30, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants