%% Copyright 2022 Yuanhao Chen % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Yuanhao Chen. % % This work consists of the files kanbun.sty, kanbun.lua, % kanbun-example.tex and kanbun.tex. % % example text from https://phesoca.com/kanbun-html/ \documentclass{ltjtarticle} \usepackage[match]{luatexja-fontspec} \usepackage[haranoaji]{luatexja-preset} \newlength\myzw \setlength\myzw{2.25\zw} \usepackage[kumi=beta, unit=\myzw, yokoaki=3.5]{kanbun} \usepackage[margin=0pt]{geometry} \usepackage{xcolor} \Kanbun åˆãƒ¡ãƒ†ï¼Œå¸ãƒŽæ¯åŠ‰è²´äººãƒè³œ(ãŸã¾)ãƒãƒª[レ]æ»ãƒ²ï¼Œå¤ªç¥–ãƒå‘Šã‚²[レ]å¸ãƒ‹æ›°ãƒã‚¯ã€Œæ˜”æ¼¢æ¦å¸ãƒå°‡â€¹ã—›«テ»ニ[レ]立タセント[二]其ノåヲ[一]而殺シ[二]其ノæ¯ãƒ²[一],ä¸[下]令(ã—)メ[三]婦人ヲ後ãƒãƒ‹èˆ‡(ã‚ã¥ã‹)ラ[二]國政ニ[一],使(ã—)メ[ä¸]外家ヲ為(ãª)サ[上レ]亂ヲ。æ±ç•¶ãƒ‹â€¹ã¹â€ºÂ«ã‚¯Â»[二]繼統ス[一],故ニå¾ãƒ¬é クシテåŒã‚ºãƒ«ã‚³ãƒˆ[二]æ¼¢æ¦ãƒˆ[一],為(ãŸ)リ[二]長久之計[一]。ã€å¸ç´ ヨリ純åナリ,哀シク泣ã‚ä¸[レ]能ãƒ[二]自ラå‹ãƒ„コト[一],太祖怒ル[レ]之レヲ。å¸ãƒé‚„リ[レ]宮ニ,哀シクä¸[二]自ラæ¢ãƒž[一],日夜ニシテ號泣ス。太祖知リテ而åˆã‚¿å¬ã‚¹[レ]之レヲ。å¸æ¬²ã‚·[レ]入ラント,左å³æ›°ãƒã‚¯ã€Œåå事ヘãƒ[レ]父ニ,å°æ–則ãƒå—ケ,大æ–é¿ã‚¯[レ]之レヲ。今陛下ノ怒ルコト盛ンナリ,入レãƒæˆ–イãƒä¸æ¸¬ãƒŠãƒªï¼Œé™·ãƒ©ã‚¹[二]å¸ãƒ²æ–¼ä¸ç¾©ãƒ‹[一]。ä¸[レ]如カ[二]且(ã—ã°ã‚‰)ク出ヅルニ[一],待ãƒãƒ†[二]怒リノ解クルヲ[一]而進ムコト,ä¸ãƒ«[レ]晚カラ也。ã€å¸ãƒæ‡¼ãƒ¬ï¼Œå¾žãƒ’[レ]之レニ,乃ãƒæ¸¸è¡Œã‚·é€ƒã‚°[二]於外ニ[一]。 \EndKanbun \begin{document} \color[HTML]{e0e0e0} \pagestyle{empty} \vspace*{\fill} \begin{minipage}{0.5\pageheight} \printkanbun \end{minipage} \vspace*{\fill} \end{document}