Debian Codegraph @

texmf-dist/doc/latex/modernruler/README.md

raw
1 # modernruler
2
3 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
4
5 **Advanced Ruler Commands for LaTeX / 高機能な罫線・アンダーノート作成パッケージ**
6
7 ---
8
9 ## Overview / 概要
10
11 `modernruler` provides enhanced ruler commands, including `\mruleth`, `\mruletv`, and `\undernote`. These commands are designed to be more flexible than standard LaTeX rules, supporting key-value options for styling and full compatibility with vertical writing modes.<br>
12 `modernruler` は、標準の罫線コマンドを拡張した `\mruleth`、`\mruletv`、および `\undernote` を提供します。色やスタイルの指定をキー値オプションで行える柔軟性を持ち、縦書き環境にも完全に対応しています。
13
14 - **Version**: 2.2.0
15 - **Date**: 2026-05-19
16 - **Author**: Kosei Kawaguchi (a.k.a. KKTeX)
17 - **License**: MIT
18 - **Repository**: [https://github.com/KKTeX/modernruler](https://github.com/KKTeX/modernruler)
19 - **Support**: [email protected]
20
21 ---
22
23 ## Acknowledgements / Credits
24
25 This package was inspired by discussions on TeX Forum concerning
26 undernote-like constructions using rules.
27
28 An improved approach was later presented by Mr. Yusuke Terada,
29 which clarified several implementation details.
30
31 The present package is a complete reimplementation and extension,
32 introducing a generalized rule-based engine, redesigned control flow,
33 and additional features such as modern ruler integration and
34 tcolorbox-based abstractions.
35
36 Any remaining errors or design decisions are entirely the
37 responsibility of the author.
38
39 ---
40
41 ## Key Features / 特徴
42
43 - **Stylable Rules / スタイル指定可能な罫線**
44 - `\mruleth` and `\mruletv` allow you to change colors and styles easily via key-value options.
45 - `\mruleth` と `\mruletv` は、色やスタイルをオプションで簡単にカスタマイズできます。
46
47 - **Annotations with \undernote / 注釈機能(\undernote)**
48 - This is the main function provided by this package. Attach short annotations beneath words or phrases, connected by a clean ruled line.
49 - このパッケージの主たる機能です。本文の語句の下に、罫線でつながれた短い注釈を配置することができます。
50
51 - **Vertical Writing Support / 縦書き環境に対応**
52 - Fully compatible with vertical layouts (e.g., `\documentclass[tate]{jlreq}`).
53 - `jlreq` パッケージなどの縦書き設定でも、崩れることなく使用可能です。
54
55 ---
56
57 ## Prerequisites / 前提条件
58
59 This package only supports LuaLaTeX.<br>
60 本パッケージはLuaLaTeXのみをサポートしています。
61
62 **Dependencies / 依存パッケージ:**
63 - `kvoptions`, `pgfkeys`, `varwidth`, `zref-savepos`, `tcolorbox`
64
65 ---
66
67 ## Usage / 使用方法
68
69 For detailed usage and examples, please refer to the documentation and source files.<br>
70 具体的な使用方法や例については、ドキュメントやソースファイルを参照してください。