CTAN Comprehensive TeX Archive Network

CTAN update: modernruler

Date: February 10, 2026 7:47:16 AM CET
KKTeX submitted an update to the modernruler package. Version: 2.1.6 2026-02-07 License: mit Summary description: Flexible ruler and annotation commands with key-value support and vertical writing compatibility Announcement text:
In this update, I made changes in the following four points: 1. Fixed a bug where the arguments of the \undernote with large depth caused text overlap. 2. Modernized the internal implementation by migrating from TeX primitives to the expl3 framework. 3. Fixed a bug which occurs when noteparstyle is set to “2”. Also, added an error message to warn users when an invalid noteparstyle is provided.
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/modernruler The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/modernruler/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
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 . While standard 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.

Packagemodernruler
Version2.1.6 2026-02-07
Copyright2025–2026 Kosei Kawaguchi
MaintainerKK

Announcements

more

Guest Book Sitemap Contact Contact Author