Numbas icon indicating copy to clipboard operation
Numbas copied to clipboard

AsciiMath support

Open GrimPixel opened this issue 8 months ago • 3 comments

AsciiMath is easier to type than LaTeX. http://asciimath.org/

GrimPixel avatar Nov 07 '23 02:11 GrimPixel

Are you asking to write AsciiMath in content areas such as the question statement or part prompts?

This would be possible, but we'd have to choose a set of delimiters for AsciiMath. I don't know what would be safe to use with the thousands of existing questions.

To implement this, I think we'd just need to come up with an AsciiMath equivalent of the \var and \simplify LaTeX commands.

christianp avatar Nov 07 '23 16:11 christianp

On the website, it says to use `. There is an implementation for Markdown preview on VSCode/VSCodium: https://github.com/zmx0142857/vscode-markdown-asciimath

AsciiDoc has a different approach: https://docs.asciidoctor.org/asciidoc/latest/stem/

GrimPixel avatar Nov 08 '23 10:11 GrimPixel

I don't think it would be safe to use `. That could easily conflict with something else. I'm not sure AsciiDoc's stem:[...] syntax would work unambiguously, either.

christianp avatar Nov 08 '23 10:11 christianp