File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
themes/default/files/scripts/standalone_scripts Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3232 const { scope} = parser . configuration . packageData . get ( 'numbas' ) ;
3333
3434 const tok = jme . evaluate ( expr , scope ) ;
35- const tex = jme . display . texify ( { tok} , settings , scope ) ;
35+ const tex = '{' + jme . display . texify ( { tok} , settings , scope ) + '}' ;
3636 const mml = new MathJax . _ . input . tex . TexParser . default ( tex , parser . stack . env , parser . configuration ) . mml ( ) ;
3737
3838 parser . Push ( mml ) ;
5858 const { scope} = parser . configuration . packageData . get ( 'numbas' ) ;
5959
6060 const subbed_tree = jme . display . subvars ( expr , scope ) ;
61- const tex = jme . display . treeToLaTeX ( subbed_tree , ruleset , scope ) ;
61+ const tex = '{' + jme . display . treeToLaTeX ( subbed_tree , ruleset , scope ) + '}' ;
6262 const mml = new MathJax . _ . input . tex . TexParser . default ( tex , parser . stack . env , parser . configuration ) . mml ( ) ;
6363
6464 parser . Push ( mml ) ;
You can’t perform that action at this time.
0 commit comments