Directory graphics/pgf/contrib/kkran
KKran
Flexible Answer Field Generator for Tests / 試験・テスト用解答欄作成パッケージ
Overview / 概要
KKran is a LaTeX package designed for generating answer fields used in tests and exams. The package name originates from the Japanese word "欄" (ran), which means a small area or field. It is fully compatible with both horizontal and vertical text layouts.
`KKran` は、テストや試験で作成される解答欄を生成するためのパッケージです。パッケージ名は「解答欄」などの「欄」に由来しています。横書き・縦書きの両方のフォーマットに完全対応しています。
- **Version**: 1.2.0
- **Date**: 2026-08-20
- **Author**: Kosei Kawaguchi (a.k.a. KKTeX)
- **License**: MIT
- **Repository**: [https://github.com/KKTeX/KKran](https://github.com/KKTeX/KKran)
- **Support**: p.c.aces1056@gmail.com
---
## Key Features / 特徴
- **Answer Field Generation / 解答欄の自動生成**
- Easily create structured areas for students to write their answers.
- 試験問題の解答スペースを、コマンド一つで簡単に作成できます。
- **Multi-Directional Support / 縦書き・横書き両対応**
- Works seamlessly in both horizontal and vertical writing modes.
- 日本語の縦書き(tate-gaki)環境でも、崩れることなく適切な解答欄を出力します。
- **Integration with KKsymbols / KKsymbolsとの連携**
- Loads `KKsymbols` explicitly with `autolowercase=1` and leverages it for enhanced visual elements.
- `KKsymbols` を `autolowercase=1` 付きで明示的に読み込み、記号等と組み合わせた高度なレイアウトを提供します。
- **Roman numerals / ローマ数字**
- `\Rrnum{8}` produces uppercase `VIII`; `\Rrnum*{8}` produces lowercase `viii`.
- `\Rrnum{8}` は大文字 `VIII`、`\Rrnum*{8}` は小文字 `viii` を出力します。
- Before putting lowercase Roman numerals into `\マークシート`, set a common reference with `KKsymbols`, for example `{\kksref{\Rrnum*{6}} \マークシート{...}{...}}`. The built-in `ロ小` numbering applies this reference automatically.
- 小文字ローマ数字を `\マークシート` に入れる場合は、`{\kksref{\Rrnum*{6}} \マークシート{...}{...}}` のように `KKsymbols` の共通基準を先に設定してください。組み込みの `ロ小` 番号では自動的に設定されます。
---
## Prerequisites / 前提条件
> This package is **LuaLaTeX-only**.
> 本パッケージは **LuaLaTeX専用** です。
**Dependencies / 依存パッケージ:**
- `calc`, `tikz`, `xcolor`, `KKsymbols`, `kvoptions`, `luacode`
---
## Usage / 使用方法
For detailed usage and examples, please refer to the documentation file: `kkran-doc.tex`.
具体的な使用方法や例については、ドキュメントファイル `kkran-doc.tex` を参照してください。
Download the contents of this package in one zip archive (421.7k).
KKran – Generate answer fields in tests and exams
A Lua- and TikZ-based package created for the Japanese education sector. It enables the arrangement of box-shaped answer fields in any desired combination using simple commands. It also facilitates the easy creation of multiple-choice answer sheets (mark sheets). Furthermore, it covers the functionality of toggling the display of model answers (solutions) via an option, and even the creation of grid-style answer fields (graph paper-like cells).
The package name originates from 欄 (:ran)
,
which means a small piece of area
, or
a small space
.
| Package | KKran |
| Repository | |
| Version | 1.2.0 2026-08-20 |
| Licenses | MIT License |
| Copyright | 2025–2026 Kosei Kawaguchi |
| Maintainer | KKTeX |
| Contained in | TeX Live as kkran MiKTeX as kkran |
| Topics | Exam PGF TikZ LuaTeX Japanese Teaching |