リビジョン | 51ffc6ee77fd6f1429c386cf38171c4db0fd19a9 (tree) |
---|---|
日時 | 2020-09-30 23:30:24 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
コミッター | Hironori Kitagawa |
date
@@ -3,7 +3,7 @@ | ||
3 | 3 | % |
4 | 4 | |
5 | 5 | \NeedsTeXFormat{LaTeX2e} |
6 | -\ProvidesPackage{lltjcore}[2020-09-27 Patch to LaTeX2e Kernel for LuaTeX-ja] | |
6 | +\ProvidesPackage{lltjcore}[2020-09-28 Patch to LaTeX2e Kernel for LuaTeX-ja] | |
7 | 7 | \RequirePackage{etoolbox} |
8 | 8 | |
9 | 9 | %%% expl3 |
@@ -3,7 +3,7 @@ | ||
3 | 3 | % |
4 | 4 | |
5 | 5 | \NeedsTeXFormat{LaTeX2e} |
6 | -\ProvidesPackage{lltjdefs}[2020-08-08 Default font settings of LuaTeX-ja] | |
6 | +\ProvidesPackage{lltjdefs}[2020-09-30 Default font settings of LuaTeX-ja] | |
7 | 7 | |
8 | 8 | \ifdefined\ltj@stdmcfont\else\def\ltj@stdmcfont{file:HaranoAjiMincho-Regular.otf}\fi |
9 | 9 | \ifdefined\ltj@stdgtfont\else\def\ltj@stdgtfont{file:HaranoAjiGothic-Medium.otf}\fi |
@@ -3,7 +3,7 @@ | ||
3 | 3 | % |
4 | 4 | |
5 | 5 | \NeedsTeXFormat{LaTeX2e} |
6 | -\ProvidesPackage{lltjfont}[2020-09-26 Patch to NFSS2 for LuaTeX-ja] | |
6 | +\ProvidesPackage{lltjfont}[2020-09-30 Patch to NFSS2 for LuaTeX-ja] | |
7 | 7 | |
8 | 8 | %% patching \DeclareTextComposite |
9 | 9 | \def\ltj@chardef@text@cmd#1{% |
@@ -3,7 +3,7 @@ | ||
3 | 3 | % |
4 | 4 | |
5 | 5 | \NeedsTeXFormat{LaTeX2e} |
6 | -\ProvidesPackage{lltjp-atbegshi}[2020-09-27 Patching \string\shipout\space hooks for LuaTeX-ja] | |
6 | +\ProvidesPackage{lltjp-atbegshi}[2020-09-30 Patching \string\shipout\space hooks for LuaTeX-ja] | |
7 | 7 | |
8 | 8 | % concept: execute all hooks inside yoko direction \vbox |
9 | 9 |
@@ -18,27 +18,27 @@ | ||
18 | 18 | { |
19 | 19 | % if \l_shipout_box is not a \yoko-box (= horizontal writing), |
20 | 20 | % then make it a \yoko-box behorehand. |
21 | - \unless\ifnum\ltjgetparameter{boxdir}{\l_shipout_box}=4 | |
22 | - \vbox_set:Nn \l_shipout_box { \yoko \box_use:N \l_shipout_box } | |
23 | - \fi | |
21 | + \platex_if_box_yoko:NF \l_shipout_box { | |
22 | + \vbox_set:Nn \l_shipout_box { \platex_direction_yoko: \box_use:N \l_shipout_box } | |
23 | + } | |
24 | 24 | % if the current direction is not \yoko, |
25 | 25 | % then enclose \__shipout_execute_cont: with |
26 | 26 | % a dummy \yoko-box named \l__platex_shipout_dummy_box. |
27 | - \ifnum\ltjgetparameter{direction}=4 | |
27 | + \platex_if_direction_yoko:TF { | |
28 | 28 | \__platex_original_shipout_execute_cont: |
29 | - \else | |
29 | + }{ | |
30 | 30 | \vbox_set:Nn \l__platex_shipout_dummy_box { |
31 | - \yoko \__platex_original_shipout_execute_cont: | |
31 | + \platex_direction_yoko: \__platex_original_shipout_execute_cont: | |
32 | 32 | } |
33 | 33 | % [Limitation] the code above may discard some contents, |
34 | 34 | % so we'd like to put it back by \box\l__platex_shipout_dummy_box. |
35 | 35 | % however, an infinite loop occurs if we uncomment the line below |
36 | 36 | % so we can't. |
37 | 37 | %\box_use:N \l__platex_shipout_dummy_box |
38 | - \fi | |
38 | + } | |
39 | 39 | } |
40 | 40 | %</ltshipout>----------------------------------- |
41 | - | |
41 | +\ExplSyntaxOff | |
42 | 42 | \expandafter\endinput |
43 | 43 | \fi |
44 | 44 | \RequirePackage{atbegshi} |