Conversation
Update keybindings-definitions
…adds new line, pressing shift + return performs commit action.
|
I don't think the default behavior of |
|
Thanks for the PR! This is something I was just thinking about. This convention of interpreting I would go a bit differently on the implementation, though. I think using the The I agree with James that the return/action should not add a line by default. Maybe that can be an option ( A few other comments:
|
|
@arnog Hello! I noticed you're considering the By opting for the Gathered environment, you can ensure seamless integration with MathJax and KaTeX, providing a more robust and user-friendly solution for your mathematical expressions. |
|
@michelmar indeed, the |
|
@arnog @michelmar my suggestion would be to serialize lines as: Which will produce left aligned equations in standard latex environments. It may be possible to replace the |
|
@arnog I understand the challenge you're facing in finding a suitable environment for your multiline math expressions. I was thinking in using the matrix environment, but it is primarily designed for matrices, which might not be the best for most use cases. But the behavior of creating a new pmatrix with each new line within parentheses is logical within the context of matrix formatting, so we could think in use the matrix environment instead. Creating a custom environment in KaTeX would have been a great solution, but as you've noted, this feature is currently not supported. Therefore, the workaround I'm considering is building a parser that converts the lines environment into either a gathered or equation* environment. I remember that in the past, the default behavior of copying an equation on mathlive was to add an equation* environment, but I don't know if this persists. I don't really know what the best choice, but this feature is really awesome. I'm thinking to use mathlive to render my static math as well, but I don't have any comparison, if it is slower, I know that it uses the same font. And I'm using a nextJS application and sometimes I have some issues with mathlive in SSR. |
\\. Inspired by KaTeX.