CTAN Comprehensive TeX Archive Network

New on CTAN: mathwrap

Date: November 22, 2026 2:44:32 PM CET
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 – Automatic line breaking in inline math

mathwrap improves line breaking in inline math mode. By default, 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.

PackageMathwrap
Version1.0
Copyright2026 Lee Yiu Sing
MaintainerYiu Sing Lee

Announcements

more

Guest Book Sitemap Contact Contact Author