New on CTAN: mathwrap
Datum: 22. November 2026 14:44:32 MEZ
Yiu Sing Lee submitted the
mathwrap
package.
Version: 1.0
License: lppl1.3c
Summary description: Automatic line breaking in inline math
Announcement text:
mathwrap is a LaTeX package that improves line breaking in inline math. It makes commas active inside inline math ($...$ and \(...\)) to allow line breaks after them, leaving display math untouched. This initial release includes - Line-break permissions after commas in inline math. - Optional tweaks to binary/relation penalties and \emergencystretch to help prevent overfull \hbox warnings. - Toggle commands (\mathwrapOn and \mathwrapOff) to disable the active comma around parser-heavy packages like TikZ or pgfplots.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/mathwrap More information is at https://ctan.org/pkg/mathwrap
Thanks for the upload. For the CTAN Team Manfred Lotz CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .
mathwrap is a LaTeX package that improves line breaking in inline math. It makes commas active inside inline math ($...$ and \(...\)) to allow line breaks after them, leaving display math untouched. This initial release includes - Line-break permissions after commas in inline math. - Optional tweaks to binary/relation penalties and \emergencystretch to help prevent overfull \hbox warnings. - Toggle commands (\mathwrapOn and \mathwrapOff) to disable the active comma around parser-heavy packages like TikZ or pgfplots.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/mathwrap More information is at https://ctan.org/pkg/mathwrap
Thanks for the upload. For the CTAN Team Manfred Lotz CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs .
Mathwrap – Automatic line breaking in inline math
mathwrap improves line breaking in inline math mode. By default, LaTeX avoids breaking lines inside inline math, which frequently results in Overfull \hbox warnings for long lists or sequences. The package makes the comma active in inline math to allow breaks after it, and optionally adjusts the penalties for binary operators and relations as well as \emergencystretch. Display math is not affected.
| Paket | Mathwrap |
| Version | 1.0 |
| Copyright | 2026 Lee Yiu Sing |
| Betreuer | Yiu Sing Lee |