CTAN Comprehensive TeX Archive Network

CTAN update: modernruler

Date: May 20, 2026 5:19:34 PM CEST
Kosei Kawaguchi submitted an update to the modernruler package. Version: 2.2.0 2026-05-19 License: mit Summary description: Announcement text:
v2.2.0: Core Stabilization and Modernization These updates significantly harden the package's internal engine against edge-case bugs and conflicts, with no changes to the user-facing API. Key stability improvements include: Prevented Register Collisions: Migrated from shared TeX scratch registers to isolated expl3 namespace variables to prevent conflicts with other packages. Eliminated Synchronization Risks: Deduplicated redundant rendering logic for boxes and rules to prevent inconsistent states. Optimized I/O & Robustness: Streamlined .aux file writes and fully transitioned legacy TeX primitives to the modern, stable expl3 framework.
This package is located at https://mirrors.ctan.org/macros/latex/contrib/modernruler More information is at https://ctan.org/pkg/modernruler
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 .

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.2.0 2026-05-19
Copyright2025–2026 Kosei Kawaguchi
MaintainerKK

Announcements

more

Guest Book Sitemap Contact Contact Author