ソースコードの管理場所
Revision | 35f327cea38d7ac9d6933227c72310f3a02ef7bf (tree) |
---|---|
Time | 2019-01-07 17:41:18 |
Author | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
Support \ltjgetparameter{linestep_factor} and \ltjgetparameter{profile_hgap_factor}
@@ -482,7 +482,13 @@ end | ||
482 | 482 | |
483 | 483 | -- ----------------------------------- |
484 | 484 | luatexja.adjust.step_factor = 0.5 |
485 | +luatexja.unary_pars.linestep_factor = function(t) | |
486 | + return luatexja.adjust.step_factor | |
487 | +end | |
485 | 488 | luatexja.adjust.profile_hgap_factor = 1 |
489 | +luatexja.unary_pars.profile_hgap_factor = function(t) | |
490 | + return luatexja.adjust.profile_hgap_factor | |
491 | +end | |
486 | 492 | do |
487 | 493 | local insert = table.insert |
488 | 494 | local rangedimensions, max = node.direct.rangedimensions, math.max |
@@ -57,6 +57,8 @@ | ||
57 | 57 | \R{false}{true} |
58 | 58 | \R{true}{true} |
59 | 59 | |
60 | +\ltjgetparameter{linestep_factor} | |
61 | + | |
60 | 62 | \ltjdisableadjust |
61 | 63 | \def\R#1#2{\ltjenableadjust[profile=#1,priority=#2]% |
62 | 64 | \noindent\fbox{\parbox[t]{20\zw}{% |
@@ -64,7 +66,7 @@ | ||
64 | 66 | \textbf{profile: #1, priority: #2}\par |
65 | 67 | \ltjsetparameter{xkanjiskip=.25\zw plus 20pt minus 20pt} |
66 | 68 | ああxあaaaあxあx\vrule height 30pt depth 30pt width 9.7\zw「\break |
67 | - \vrule height 30pt depth 30pt width9.7\zw xあxあxあaaaああ「\break | |
69 | + \vrule height 30pt depth 30pt width9.6\zw xあxあxあaaaああ「\break | |
68 | 70 | }}} |
69 | 71 | |
70 | 72 | \R{false}{false}% |
@@ -84,18 +86,16 @@ | ||
84 | 86 | }}\hskip0pt\ignorespaces |
85 | 87 | } |
86 | 88 | |
89 | +\newpage | |
90 | +\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par | |
87 | 91 | \noindent |
88 | -\R{0} | |
89 | -\R{0.5} | |
90 | -\R{1} | |
91 | -\R{9} | |
92 | -\R{10} | |
92 | +\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10} | |
93 | + | |
93 | 94 | |
95 | +\newpage | |
94 | 96 | \ltjsetparameter{profile_hgap_factor=2} |
95 | -\R{0} | |
96 | -\R{1.5} | |
97 | -\R{2} | |
98 | -\R{8} | |
99 | -\R{10} | |
97 | +\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par | |
98 | +\noindent | |
99 | +\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10} | |
100 | 100 | |
101 | 101 | \end{document} |