I've followed the instructions here: https://community.qualtrics.com/XMcommunity/discussion/comment/32547#Comment_32547 to integrate katex into a survey for displaying equations. Interestingly, when I use "preview question" on a question with embedded katex, it displays fine in the pop-up window, as below:
But when I use "preview block," "preview survey" or even just look at the published survey, I get a mess:
Interestingly, you'll see that the variable d_{blue, red flag} is actually displayed properly within that block.
I feel like maybe there's a command I'm missing somewhere that doesn't get triggered when doing the broader previews? Has anyone gotten math display to work properly (using katex or otherwise)?
Page 1 / 1
Post your question html (as a code block).
Text block:
Globally/Always:
\\text{``Always between } t=1_1 \\text{ and } t=t_2:S\\text{"} means that the statement S must always be true for all time between t_1 \\text{ and } t_2. This is equivalent to \\text{``}G_{[t_1,t_2]}:S\\text{"}, where G stands for "globally"
Finally/Eventually:
Other Operators:
“∧” means “AND”
“∨” means “OR”
“¬” means “NOT”
“≤“ means “less than or equal to”
"≥“ means “greater than or equal to”`
Question JavaScript:
Qualtrics.SurveyEngine.addOnload(function() {jQuery(".katex").each(function() {
katex.render(this.innerHTML, this, { throwOnError: false });
});
});
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
Look and Feel \\ General \\ Header:
Remove defer and onload from your
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.