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
An idea for responsive display style equations #1012
Comments
Great idea to tackle this! I'd rather do something fully LaTeX compatible. According to this, there seem to be two main packages for automatic line breaking of equations (which we could try to implement support of in KaTeX): The autobreak package sounds similar to your solution, in that you need to add explicit candidate line breaks. But it does so with |
I'm not familiar with either of those packages, but |
I looked more closely at both and agree with your assessment. |
One of the difficulties with designing responsive math is that it is a priori unclear how to resize or break a user's equation if it is too wide to display on mobile devices.
I propose to handle this by allowing use of the TeX hyphenation macro
\-
. It would work as follows.\-
command once per line in a display style equation.\-
, is moved to the next line and right-aligned.I'd be curious to hear thoughts. This won't cover every situation, but I think would cover most, and is better than having no responsive support at all. It could be added as a contrib module.
The text was updated successfully, but these errors were encountered: