typstyle icon indicating copy to clipboard operation
typstyle copied to clipboard

[ FEATURE REQUEST] (Inline) math formatting

Open Ciflire opened this issue 1 year ago • 1 comments

Math formatting in general

  • Would be good to have spaces between symbols

Inline Math formatting

  • Linebreaks for too long lines

(PS: I'll updated if I can think of other things)

Ciflire avatar May 27 '24 15:05 Ciflire

related #43

Enter-tainer avatar May 28 '24 06:05 Enter-tainer

There are many obstacles to math formatting due to its magical nature.

  • Spaces matter in the representation, so we should never add extra spaces or remove seemingly redundant spaces. We can only shorten spaces or modify spaces in args.
  • We cannot find truly satisfying places to insert linebreaks, as the symbolic semantics can vary everything. A "universal" line-breaking strategy could not work for everything.

Therefore, your requested features cannot be satisfactorily fulfilled. We choose to leave these decisions to end users. Let me close the issue. If you have any further suggestions, please feel free to leave comments or open new issues!

QuadnucYard avatar Apr 21 '25 07:04 QuadnucYard