As for LaTeX in general, Markdown beats it soundly in most aspects.
As for LaTeX in general, Markdown beats it soundly in most aspects.
I personally find LaTeX easier to read because I immediately recognize that a curly brace is not part of the formula but just of its representation, while with Asciimath I'm left to guess if a parenthesis was put just to group a subexpression or if it carries a mathematical meaning. For example:
\frac{abc}{def}
It's clearly "abc" over "def". (abc)/(def)
Is the numerator "abc" or "(abc)"? Parentheses often do matter: does the following describe a derivative of order 2n or a power? f^(2n) abc / def
f^ 2n
even matrices are straight forward: [a, b, c
d, e, f]
https://runarberg.github.io/mathup/Everything stems from the need to tell apart the text from the non-textual information, or structure. For example you don't add phrases like "the next word in italics" to mark parts of the document, because the reader will not understand if those are part of the text. Instead you must use either symbols that one wouldn't find in the text, like "*", or well-marked keywords, like "\em" or "<b>". Markdown prefers symbols, which look prettier for pure text, but unfortunately in maths nearly all symbols are already taken. LaTeX opted for keywords and chose a leading "\" to mark them, plus some rarely used symbols like "{" for grouping.
Asciimath uses neither uncommon symbols nor well-marked keywords, but rather words like "int" and common symbols like "(". I find it really confusing. In this way if you read "int", you don't immediately know if it stands for an integral sign or a function called "int" or the product of 3 variables called "i", "n", and "t". And when you find a pair of parentheses you don't know if they are part of the formula or if they were added just to group a subexpression.
I think this is called in-band signaling.
Asciimath does have some good points, though. The use of " to mark elements that must rendered as text and not maths is simple and effective. I tend to use it quite often for things like e (2.72), i (imaginary unit), d (differential) that are not variables and thus should be rendered with an upright roman font, not slanted or italics. LaTeX is worse because it forces you to write {\rm i} or \text{i}.
(-1)^n = {
[ 1 , n " even" ],
[ -1 , n " odd" ],
[ cosn+isinn , "otherwise" ]
:}
R(theta) = (
[ costheta , -sintheta ] ,
[ sintheta , costheta ]
)
It makes typing simple equations very simple, and if it gets complicated I could always write more explicitly/fall back to latex syntax which it parses as well.It's kinda similar to the philosophy of Markdown -- make simple things easy and allow an escape hatch for when you need to be unambiguous.
[1] https://uva-fnwi.github.io/LaTeX/week2/maths2/
[2] https://en.wikibooks.org/wiki/LaTeX/Advanced_Mathematics
[3] https://tex.stackexchange.com/questions/397453/what-are-all-...
One can also produce amazing results programming in assembly, but I sure as fuck ain't doing that for anything I actually need to get done.