Menu

#205 inline math: prevent line-break at punctuation

v1.0_(example)
open
nobody
None
5
2025-10-23
2025-10-20
No

When writing inline math, I wish there a way to keep the resulting image "attached" to any surrounding punctuation (e.g. parentheses, periods, commas). I suppose we can embed the punctuation within the equation itself, but sometimes the fonts don't match. Example in the attached image.

1 Attachments

Discussion

  • Roland Baudin

    Roland Baudin - 2025-10-21

    Hi, you have to insert an non-breaking space between the character [ and your equation.

    A non-breaking space can be inserted in LibreOffice by pressing Ctrl-Shift-Space instead of Space.

    I think this is the standard shortcut in word processors (should be the same in Microsoft Word). This can be used in any situation where the user wants to avoid an unwanted breaking...

     
  • Jesse Knight

    Jesse Knight - 2025-10-22

    Thanks, but I want a zero-width non-breaking character, or else there would be a visible space between the punctuation and the math, which looks bad. I also tried inserting U+2060 (ctrl+shift+u, then 2060) from here, but, surprisingly, this didn't work either. Maybe it is a limitation of how LibreOffice allows "words" (which in this case include characters and an image) to be broken across lines.

     
    • Roland Baudin

      Roland Baudin - 2025-10-23

      In that case, just include the [ ] characters in your equation... See attached screenshot.

       

      Last edit: Roland Baudin 2025-10-23

Log in to post a comment.