| ▲ | AsciiMath(asciimath.org) | ||||||||||||||||
| 68 points by smartmic 10 hours ago | 20 comments | |||||||||||||||||
| ▲ | gucci-on-fleek 31 minutes ago | parent | next [-] | ||||||||||||||||
The author of ConTeXt (a TeX format similar to LaTeX) has some interesting comments on AsciiMath [0] [1]. Its space handling looks especially problematic; the example given in [0]
produces the following output
Its handling of commas looks even worse, but it's tricky to demonstrate that in plain text.[0]: https://tug.org/TUGboat/tb36-2/tb113hagen.pdf#page=3 [1]: https://github.com/contextgarden/context/blob/e9bd55ec/tex/c... | |||||||||||||||||
| ▲ | tombert 5 hours ago | parent | prev | next [-] | ||||||||||||||||
I use Typst a lot now (which this reminds me of), and the equation support is generally very good, but the thing that gives me pause is that I'm afraid that there's going to be something missing, or worse than the LaTeX equivalent. LaTeX has been the industry standard for the mathematical world for decades and as a result it has had the most work adding new notation or making nicer formatting. For example, I needed to do a proof tree recently. Typically I would use bussproofs in LaTeX but I was using Typst, and while there is a package for handling proof trees in Typst [1], I think they're not very pretty, and as a result I ended up porting the document over to Pandoc markdown and doing the rest of my work there (which is annoying because Typst renders around ~1000x faster and has better tooling). | |||||||||||||||||
| |||||||||||||||||
| ▲ | agnishom 6 hours ago | parent | prev | next [-] | ||||||||||||||||
One could just use the math fragment of typst, no? | |||||||||||||||||
| ▲ | BruceEel an hour ago | parent | prev | next [-] | ||||||||||||||||
Neat. Personally, I wasn't aware of mathjax, it's a bit of a revelation to learn you can do this. I like very much the fact that the ASCII side is highly readable - compared to say, LaTeX (to me, anyway!) - as something I could use in code comments. | |||||||||||||||||
| ▲ | NIckGeek 3 hours ago | parent | prev | next [-] | ||||||||||||||||
I'm a big fan of AsciiMath and have been supporting it in my note taking program (MicroPad) since ~2016. It was the key for me being able to write maths in a classroom/lecture theatre at the same speed (or faster) than those doing it by hand. | |||||||||||||||||
| ▲ | MichaelNolan 6 hours ago | parent | prev | next [-] | ||||||||||||||||
What exactly is the distinction between this and mathjax? At first glance it looks like this is a wrapper on top of mathjax, or is it something different? I guess it’s just more “natural” and less latex like. $$\sum_{i=0}^n i^2 = \frac{(n)}{2}$$ Vs sum_(i=o)^n i^2=((n)/2) | |||||||||||||||||
| |||||||||||||||||
| ▲ | hota_mazi an hour ago | parent | prev | next [-] | ||||||||||||||||
What strange choices. For example, to express the sum from i=1 to n:
Why use the exponent sign to indicate the upper limit? Am I taking crazy pills here?How about using some symmetry instead, e.g. | |||||||||||||||||
| |||||||||||||||||
| ▲ | runarberg 4 hours ago | parent | prev | next [-] | ||||||||||||||||
Shameless plug: I made a competing library to asciimath called mathup | |||||||||||||||||
| ▲ | adamnemecek 7 hours ago | parent | prev | next [-] | ||||||||||||||||
If you like this, check out typst https://typst.app | |||||||||||||||||
| ▲ | bottlepalm 6 hours ago | parent | prev | next [-] | ||||||||||||||||
It's too bad MathML never supported ASCII math. The web might be a different place if it did. | |||||||||||||||||
| |||||||||||||||||
| ▲ | JoelMcCracken 7 hours ago | parent | prev | next [-] | ||||||||||||||||
This is cool. I could see myself using this for notes. | |||||||||||||||||
| |||||||||||||||||
| ▲ | lutusp 2 hours ago | parent | prev [-] | ||||||||||||||||
Great! Another LaTeX competitor, doubtless "better" for an obscure reason known only to its author. Especially appealing is the fact that, when embedded in a Web page, it must be translated into LaTeX syntax before rendering by MathJax. The "AsciiMath" name reveals volumes, because prior to rendering, LaTeX code is already ASCII characters meant to represent math symbols. We just didn't call it that. Oh well, a tempest in a teapot, soon to be forgotten. We can already tell a chatbot, "Show me the tensor equations of General Relativity, and render the result in LaTeX." I close with the obligatory XKCD reference: https://xkcd.com/927/ | |||||||||||||||||
| |||||||||||||||||