xaml-math icon indicating copy to clipboard operation
xaml-math copied to clipboard

Feature Request: Word Wrap in FormulaControl.

Open cvdevol opened this issue 2 years ago • 2 comments
trafficstars

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 \?

cvdevol avatar Mar 04 '23 20:03 cvdevol

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.

ForNeVeR avatar Mar 04 '23 20:03 ForNeVeR

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. :-(

cvdevol avatar Mar 04 '23 20:03 cvdevol