// Numbas version: exam_results_page_options {"name": "Custom LaTeX rendering for a variable name", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Custom LaTeX rendering for a variable name", "tags": [], "metadata": {"description": "
This question includes a JavaScript preamble which defines 'hbar' as a special variable name to be rendered in LaTeX as \\hbar.
", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "This shows that the special variable name hbar is rendered as $\\hbar$ in \\simplify environments: $\\simplify{hbar/(2pi)}$.
", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": [], "variable_groups": [], "functions": {}, "preamble": {"js": "Numbas.jme.display.specialNames['hbar'] = '\\\\hbar';", "css": ""}, "parts": [{"type": "jme", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "Write an expression involving the variable name hbar
.