LaTex not displaying correctly in STACK

LaTex not displaying correctly in STACK

by Vid Vrh -
Number of replies: 2

Hey all, 

I have a pretty weird problem in my question. I am using LaTex to display some text in the Question text field of the STACK question. The problem is, that some of the text I want to display displays correctly (that is text in the beggining of the question) and some doesn't (that is text in the later parts of the question) , for example:



I have even tried to insert the expression via the Moodle Equation editor, but it didn't work either. 

Can someone please help me with that? 

Vid 


If you need, I am attaching the question exported to XML.

Average of ratings: -
In reply to Vid Vrh

Re: LaTex not displaying correctly in STACK

by Christopher Sangwin -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Yes, this is quite a common authoring problem (not a bug in STACK). You have misplaced "span" tags and other broken HTML, and so at some point MathJax basically gives up trying to turn the raw LaTeX in the page into typeset mathematics. I've cleaned up your question text and the question is fine. This is documented here: https://docs.stack-assessment.org/en/Authoring/Fixing_broken_questions/

In reply to Christopher Sangwin

Re: LaTex not displaying correctly in STACK

by Vid Vrh -
Hello,

thank you for your answer. HTML was the last place I would imagine where the problem woul be.

Thank you for your help,
Vid