CTAN Comprehensive TeX Archive Network

New on CTAN: modernruler

Date: January 3, 2026 11:53:48 AM CET
KKTeX submitted the modernruler package. Version number: 1.0.0 2025-12-28 License type: mit Summary description: Flexible ruler and annotation commands with key-value support and vertical writing compatibility Announcement text:
The modernruler package provides a set of enhanced ruler commands—including \mruleth, \mruletv, and \undernote—designed to offer greater flexibility than standard LaTeX rule primitives. Key Features: Key-Value Interface: Easily customize width, height, color, and dash patterns using an intuitive key-value syntax. Enhanced Annotations: The \undernote command allows for sophisticated "underline-style" annotations with precise control over positioning and styling. Vertical Writing Support: Built from the ground up to be fully compatible with vertical writing modes (tate-kumi), making it ideal for diverse typesetting needs. Customizable Styles: Supports solid and dashed lines, as well as various framing options for notes. Whether you need complex dashed rules or position-sensitive annotations in either horizontal or vertical layouts, modernruler simplifies the process.
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 . 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
Version1.0.0 2025-12-28
Copyright2025 Kosei Kawaguchi
MaintainerKK

Announcements

more

Guest Book Sitemap Contact Contact Author