Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Curly braces not showing as matrix-like arrangement #101

Open
mbumbaugh opened this issue Jan 18, 2019 · 1 comment
Open

Curly braces not showing as matrix-like arrangement #101

mbumbaugh opened this issue Jan 18, 2019 · 1 comment

Comments

@mbumbaugh
Copy link

mbumbaugh commented Jan 18, 2019

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
Copy link
Contributor

jipsen commented Jan 18, 2019

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):}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants