numbas / numbas-extension-eukleides

An extension for Numbas which provides the Eukleides geometrical drawing language.
https://numbas.github.io/numbas-extension-eukleides/
GNU General Public License v3.0
1 stars 1 forks source link

latex labels #5

Open ribrdb opened 3 years ago

ribrdb commented 3 years ago

Is there any way to use latex in labels? Square roots in particular would be useful for labeling triangle side lengths.

christianp commented 3 years ago

Not at the moment. When we move to MathJax 3, it'll be possible.

ribrdb commented 3 years ago

It's hacky, but using the unicode square root symbol and combining overline kind of works. It looks better with font: .2pt Menlo, Tahoma, sans-serif

(a..b) label("√1̅6̅")
christianp commented 3 years ago

The overline wouldn't be good for screen readers. I think it makes sense without it, don't you?

ribrdb commented 3 years ago

Yeah, it has plenty of problems. Probably better to wait for mathjax 3.