arnog / mathlive

A web component for easy math input
https://cortexjs.io/mathlive
MIT License
1.27k stars 261 forks source link

Add maxMatrixCols property so that matrices with more than 10 columns may be defined #2352

Closed mgreminger closed 2 months ago

mgreminger commented 2 months ago

Currently, the matrix environment only allows 10 columns. This default makes sense since this is the default used by the amsmath library. The amsmath library provides the MaxMatrixCols counter to increase this limit. This pull request adds a maxMatrixCols property to MathLive fields to allow more than 10 columns in the matrix environment. This property is also exposed as the max-matrix-cols attribute.

Sorry about the large diff for CHANGELOG.md, I only added the new feature to the top, the linter went to town on the rest of it.

arnog commented 2 months ago

Looks good. Thanks for the PR, that's a great addition.