Hello,
i would like to display mathematical expressions on my survey like the one you can see on the image.
I tried using MathJax only to find out LimeSurvey already has a engine for that "Expression Manager". I already scrolled through the documentation but could not find something useful syntax-wise.
Does anyone know a good documentation on how to do it? Thank you!
Expression Manager is not for displaying mathematical formulas, but to create forumlas within Limesurvey. However, it is more for basic formulas to influence the questionnaire, rather than complex mathematical formulas.
I think your best way is to include the formula that you want to show via screenshot/image.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
But you have to find a workaround regarding curly brackets.
They are used as delimiters in Expression Manager.
So formulas with curly brackets won't work.
Maybe you can customize MathJab accordingly.
Till now I was not successful using the AsciiMath Input.
Not with AsciiMath, but with the curly brackets.
Joffm
At the moment it is a rough prototype.
I only included the example into the sourcecode of the question and masked the curly brackets:
Thanks a lot guys!
I managed to get MathJax running by avoiding the curly brackets and it works fine.
Some aspects won't work, like negative exponents or a number with a sin/cos/tan as an exponent
I already did some research and tried a few things out but couldn't figure it out. Does anyone of you have a clue on how to do it?
Somehow, using a sin as an exponent, it gets calculated automatically, altough I only want to display it like this: 25^sin(90)