modernruler

Flexible ruler and annotation commands with key-value support and vertical writing compatibility

Version:
1.1.0
Copyright:
Kosei Kawaguchi
License:
mit
Packaged on:
01/11/2026 11:32:45
Number of files:
2
Size on disk:
25.93 kB

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.