Supporting each other

Community forums

Welcome, Guest
Username: Password: Remember me
Report any technical problems you discover and discuss solutions.
  • Page:
  • 1

TOPIC:

Problems with formulae 8 years 10 months ago #3410

  • t.agemar
  • t.agemar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
I use Xerte for more than a year and until recently I had no major problems.
With version 2.1 I used latex expressions for formulae and inserted tags like:

<tex alt="dP/dz=ρg" src="{\frac{dP_{hst}}{dz}= \rho g}"></tex>

This worked fine for most of the time. Recently, I noticed that my deployed e-learning projects from last year refuse to render any formula. I assumed that the MathJax service changed something. I decided to install Xerte 3.1 and hoped to resolve this problem quickly. I figured out that I had to change the syntax a little bit:

<span class="mathjax">\[\frac{dP_{hst}}{dz}= \rho g\]</span>

So, now the formulae are rendered correctly in the XERTE editor. However, if I export a deployment folder and open it in firefox then no latex expression is rendered. It appears that MathML expressions are rendered, only. But MathML doesn't seem to work with MS-browsers.
What would be the best way to ensure that formulae in the deployment folders are rendered properly in any browser?

Regards,
Thorsten

Please Inloggen or Create an account to join the conversation.

Last edit: by t.agemar.

Problems with formulae 8 years 10 months ago #3411

  • tom
  • tom's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 1286
  • Thank you received: 324
The <tex> syntax depends on an external service that runs on one of my servers. Ir converts the expression in an image and inserts the image in the html. We recently had a security breach on that server, and that is probably the reason why it doesn't work any more. I'll look into that.

The Mathjax syntax is indeed the best way to do this, as it uses javascript and proper fonts to render the formula. It therefore scales much better than the image heneragtion.

Did you try to open the deployment package from disk, or was it installed and loaded in firefox from a webserver. The latter should have worked. The former should also work if you export the LO as an offline package.
The following user(s) said Thank You: t.agemar

Please Inloggen or Create an account to join the conversation.

Problems with formulae 8 years 10 months ago #3423

  • t.agemar
  • t.agemar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Dear Tom,
thanks for your advice. I opened index.html from disk since I would like to store the LO on memory stick for presentations or send them via email. The option "offline Archive" works perfectly for both, MathML and Latex. Thank you very much.

Kind regards,
Thorsten

Please Inloggen or Create an account to join the conversation.

  • Page:
  • 1
Moderators: ronmjultenJohnSmith
Time to create page: 0.043 seconds
Copyright © 2024 The Xerte Project.
Xerte logo Apereo logo OSI Logo

Search