// Numbas version: finer_feedback_settings {"name": "Displaying a randomised LaTeX command", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"functions": {}, "ungrouped_variables": ["expressions", "expression"], "name": "Displaying a randomised LaTeX command", "tags": [], "preamble": {"css": "", "js": ""}, "advice": "", "rulesets": {}, "parts": [], "extensions": [], "statement": "
If you don't wrap the string in the latex function, it's displayed as plain text: $\\var{expression}$
\nThe correct way to do it is as follows: $\\var{latex(expression)}$
", "variable_groups": [], "variablesTest": {"maxRuns": 100, "condition": ""}, "variables": {"expressions": {"definition": "[\n \"\\\\frac\\{1\\}\\{2\\}\",\n \"\\\\sin(x)\",\n \"2 + \\\\hat\\{x\\}\"\n]", "templateType": "anything", "group": "Ungrouped variables", "name": "expressions", "description": ""}, "expression": {"definition": "random(expressions)", "templateType": "anything", "group": "Ungrouped variables", "name": "expression", "description": ""}}, "metadata": {"description": "Demonstrates how to create variables containing LaTeX commands, and how to use them in the question text.
", "licence": "Creative Commons Attribution 4.0 International"}, "type": "question", "showQuestionGroupNames": false, "question_groups": [{"name": "", "pickingStrategy": "all-ordered", "pickQuestions": 0, "questions": []}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}]}], "contributors": [{"name": "Marlon Arcila", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/321/"}]}