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.
| Sources | /macros/latex/contrib/modernruler |
| Documentation | |
| Repository | https://github.com/KKTeX/modernruler |
| Version | 1.0.0 2025-12-28 |
| Licenses | MIT License |
| Copyright | 2025 Kosei Kawaguchi |
| Maintainer | KKTeX |
| Topics | Notes Misc support |
Download the contents of this package in one zip archive (141.9k).
Suggestions
Maybe you are interested in the following packages as well.
Community Comments