maTeXt: a program and Nim library for rendering LaTeX math as multiline Unicode text

xigoi - 2 years ago

https://xigoi.srht.site/matext/

apfyqidrkihv - 2 years ago | thread

Very cool

reply
user24 - 2 years ago (last modified 2 years ago) | thread

Very cool to write math when input has no math formatting.

E.g.

                                š‘›      š‘›                
āˆ€ Ļµ > 0 āˆƒ Ī“ > 0: š‘‘(š‘„, š‘¦) < Ī“ ā‡’ š‘‘(š‘“ (š‘„), š‘“ (š‘¦)) < Ļµ āˆ€ š‘› āˆˆ ā„•

The one-line mode could be improved.

E.g. it outputs

š‘‘(š‘“^š‘›(š‘„), š‘“^š‘›(š‘¦)) < Ļµ

but could've instead used the superscript characters.

š‘‘(š‘“āæ(š‘„), š‘“āæ(š‘¦)) < Ļµ

reply
xigoi - 2 years ago | thread parent

I'm not using the ā€œāæā€ character here because it's the superscript version of ā€œnā€, not ā€œš‘›ā€. The latter has no superscript version.

reply
user24 - 2 years ago | thread parent

Indeed. Didn't noticed it was š‘›.

reply
xigoi - 2 years ago (last modified 2 years ago) | thread parent

No problem. I debated making it use the superscript anyway, since having f^\mathrm{n} is pretty rare, but decided against it for maximum correctness.

reply