numbas / Numbas

A completely browser-based e-assessment/e-learning system, with an emphasis on mathematics
http://www.numbas.org.uk
Apache License 2.0
207 stars 122 forks source link

Add annotation var for .texNameAnnotations path #771

Closed lorcanj closed 3 years ago

lorcanj commented 3 years ago

Not sure if this is what you meant, please let me know if this is not quite correct. Thanks

christianp commented 3 years ago

@lorcanj that line of code doesn't do anything.

In jme-display.js there's a dictionary containing functions that produce LaTeX code for different variable name annotations. #770 asks to add another entry to this dictionary for the annotation 'diff', which would return '{\\mathrm{d}'+name+'}'.

lorcanj commented 3 years ago

Oof, my bad! I've removed that variable previosuly added and added that dictionary entry to the correct file.

christianp commented 3 years ago

That's it! Thank you very much for this contribution; I've merged it.

Could you add yourself to the CONTRIBUTORS.md file, please?

christianp commented 3 years ago

Thanks! I've merged in your commits, omitting the ones that changed jme-variables.js.

If you want another job to do, #690 asks to recognise unicode symbol equivalents of operator and function names. There are plenty of these, so you could add a few.