jlreq
日本語document classの1つ
現時点で最新かつ汎用的なdocument classらしい
日本語組版処理の要件を満たしているのが特徴
ltjsarticleと同様、luatexjaは自動で読み込まれる
章立て
\sectionではなく\chapterから始まるので、\sectionだけを使うと0.1始まりになってしまう
余白の設定方法
geometry (LaTeX)抜きで設定できるLaTeX文書における余白の設定方法|文藝部LaTeX研究会
geometry (LaTeX)は縦書きだと余白を設定できないが、jlreqは縦書きの余白設定にも対応している
いろんな機能がある
TeXの見出しのカスタマイズ
\ModifyHeading
\sidenote/\endnote/\warichu
\sidenoteを使う時は、preambleでsidenote_lengthを設定する
一部の章だけ変更するなどはできない
\documentclassのoption
jlreq_notesで日本語組版処理の要件と矛盾する設定に警告を出す
https://qiita.com/shun-shobon/items/91f08d02f2fd13c33d46
フォントサイズ
font_sizeで本文フォントの大きさを決める
これが\normalsizeになる
headerとfooter
https://abenori.blogspot.com/2018/08/jlreq-declarepagestyle-declarepagestyle.html
柱で指定する
うまくいかないときはfancyhdrを使う
https://kumaroot.readthedocs.io/ja/latest/latex/latex-fancyhdr.html
http://xyoshiki.web.fc2.com/tex/fancyhdr.html
jlreq-complements
\frontmatter, \mainmatter, \backmatterはbookなどにしかない
これはjlreqではなくdocument class全般の話だけど
https://tex.stackexchange.com/questions/124541/undefined-control-sequence-error-when-trying-to-add-frontmatter-and-mainmatter
References
jlreqの公式docs
天地有情 LaTeX jlreq --- もう一つの日本語ドキュメントクラス
日本語 LaTeX の新常識 2021 - Qiita
jlreq - TeX Wiki
#2026-03-29 15:59:01
#2026-02-02 17:59:36
#2023-05-10
#2023-05-02 18:33:24
#2021-11-17 15:07:53