[Xerte-dev] Re: [Xerte] Re: LaTex maths script

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Jun 26 09:33:38 BST 2013


Fixed it.

From: xerte-dev-bounces at lists.nottingham.ac.uk [mailto:xerte-dev-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 26 June 2013 09:26
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk)
Subject: [Xerte-dev] Re: [Xerte] Re: LaTex maths script

Ah. John is in my team, he's just shown me the problem:

`e=mc^2'

On the first time you see it, it's OK: subsequent visits to the page, and it doesn't render. I had this issue in the bootstrap template, and had to call the typesetting manually:

MathJax.Hub.Queue(["Typeset",MathJax.Hub]);

After each page load. Does anyone know in the Xenith.js where to put this? I'll have a look, but I'll have to look for it...

...I think this is a different problem to losing the backslashes?

From: Tenney Julian
Sent: 26 June 2013 09:18
To: For Xerte technical developers (xerte-dev at lists.nottingham.ac.uk<mailto:xerte-dev at lists.nottingham.ac.uk>)
Subject: FW: [Xerte] Re: LaTex maths script

> The fact that we loose '\'when reentering the editor is a known issue. I'll give it another go to try and fix this.

What is the cause of it? Is there anything I can do to help?

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of John Horton
Sent: 26 June 2013 08:50
To: Xerte discussion list
Subject: [Xerte] Re: LaTex maths script

From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tom Reijnders
Sent: 23 May 2013 12:21
To: Xerte discussion list
Subject: [Xerte] Re: LaTex maths script

The fact that we loose '\'when reentering the editor is a known issue. I'll give it another go to try and fix this.

In the mean time, the math capabilities  of Xerte Online Toolkits 2.0 have been enhanced with MathJax. So if you have XOT 2,0 at your disposal you can do the same with:


`Re=(rho*nu*d)/eta`

This is the so-called AsciiMath syntax. Latex should work as well, but then you would have to cope with '\' again, so no point in doing that now.

[cid:image001.png at 01CE7250.3D0FF850]

Hello,

A colleague in Chemistry at Nottingham has been using equations in Toolkits over the last few days and she is overjoyed that she can now display algebra properly. However, she has managed to find a bug. Although I've not read all the correspondence about backslashes and losing them when re-entering the editor, her problem does seem to be related (even if only superficially).

Here's how to reproduce it. Create a quiz and add some algebra to the question or the possible answers. Add some other icon to the main flow-line. Run the program; observe that the algebra is displayed correctly; go to the next page; return to the quiz page; observe that the algebra is now displayed exactly as it was put into the editor e.g. E = mc2 now appears as  `E=mc^2`.

Does anyone have any suggestions about how to avoid this?

John Horton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130626/93fcad1d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 730 bytes
Desc: image001.png
URL: <http://lists.nottingham.ac.uk/pipermail/xerte-dev/attachments/20130626/93fcad1d/attachment.png>


More information about the Xerte-dev mailing list