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

Feature Request: Word Wrap in FormulaControl. #382

Open
cvdevol opened this issue Mar 4, 2023 · 2 comments
Open

Feature Request: Word Wrap in FormulaControl. #382

cvdevol opened this issue Mar 4, 2023 · 2 comments

Comments

@cvdevol
Copy link

cvdevol commented Mar 4, 2023

Is it possible to implement automatic word wrap so that long formulas can be are split up automatically instead of having to manually add a new line \?

@ForNeVeR
Copy link
Owner

ForNeVeR commented Mar 4, 2023

I fear that would be a very complex and difficult task. Even TeX itself isn't always able to handle this reliably. I heard that amsmath is able to do that, but it's definitely far ahead of what we have implemented right now.

@cvdevol
Copy link
Author

cvdevol commented Mar 4, 2023

If it's possible to get the width of the control, the width of the display area and the size of the font, I suppose you could calculate where the line feed should be placed. But you'd have to be careful not to put it in the middle of a LaTex tag or compound structure like a variable and its subscript or some such thing. So yes, it seems quite elaborate. :-(

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

No branches or pull requests

2 participants