asciimath / asciimathml

A new home for asciimathml
http://asciimath.org/
MIT License
958 stars 184 forks source link

Curly braces not showing as matrix-like arrangement #101

Open mbumbaugh opened 5 years ago

mbumbaugh commented 5 years ago

Curly braces not showing as matrix-like arrangement (via MathJax). Example:

{(1,2,3),(4,5,6),(7,8,9)}

Just shows up on one line like a list. Is that the intention? The syntax seems to indicate it should be a matrix-like arrangement with large, outer curly braces.

jipsen commented 5 years ago

Yes, that is the intension, though perhaps unexpected in your case. The documentation could be clearer on this.

{a,b,c} is parsed as a set, and your example is parsed as a set of triples. This overrides the matrix syntax that is otherwise the default. The main reason for this choice is that sets are very common in mathematics and have a simple standard syntax.

To get the expected matrix notation, use invisible brackets and then surround this unparenthesized matrix by {...}:

{{:(1,2,3),(4,5,6),(7,8,9):}}