CTAN update: modernruler
Date: January 26, 2026 4:12:00 PM CET
KKTeX submitted an update to the
modernruler
package.
Version number: 1.3.1 2026-01-26
License type: mit
Summary description: Flexible ruler and annotation commands with key-value
support and vertical writing compatibility
Announcement text:
Fixed a bug which occurs when \undernote command is used in mathmode. From version 1.3.1 onwards, you can use \undernote command in math mode as follows: \[\undernote{x + y}{In the equation envriomnemt.} = \undernote{\frac{a}{b}}{No problem.}\] Some commands which are allowed to use only in math mode can be used in the argument of \undernote.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/modernruler More information is at https://www.ctan.org/pkg/modernruler
Thanks for the upload. For the CTAN Team Erik Braun
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
Fixed a bug which occurs when \undernote command is used in mathmode. From version 1.3.1 onwards, you can use \undernote command in math mode as follows: \[\undernote{x + y}{In the equation envriomnemt.} = \undernote{\frac{a}{b}}{No problem.}\] Some commands which are allowed to use only in math mode can be used in the argument of \undernote.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/modernruler More information is at https://www.ctan.org/pkg/modernruler
Thanks for the upload. For the CTAN Team Erik Braun
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
modernruler – Flexible ruler and annotation commands with key-value support and vertical writing compatibility
This package provides a versatile set of commands for drawing rules and creating annotations in LaTeX. While standard LaTeX rules can be rigid, this package introduces more flexible alternatives: \mruleth (horizontal rules), \mruletv (vertical rules), and \undernote (underlined annotations).
Key Features:
- Key-Value Interface: All commands support a consistent key-value syntax for adjust dimensions (width, height, depth), colors, and dash patterns (dash, dash-len, gap-len).
- Underline Annotations: The \undernote command allows users to attach descriptive notes to underlined text. It automatically handles positioning, spacing between multiple notes, and provides options for various border styles (solid or dashed boxes).
- Vertical Writing Compatibility: Designed with multilingual typesetting in mind, the package is compatible with vertical writing modes, ensuring that rules and notes are oriented correctly.
- Customization: Users can update package-wide dfaults at any point in the document using a dedicated set of \SetUNote… commands.
| Package | modernruler |
| Version | 1.3.1 2026-01-26 |
| Copyright | 2025 Kosei Kawaguchi |
| Maintainer | KKTeX |