1 \documentclass[10ptj]{ltjsarticle}
2 \usepackage[width=40\zw, lines=40,centering]{geometry}
3 \usepackage{amsmath,luacode,xcolor,luatexja-adjust}
5 \def\R#1#2{\ltjenableadjust[profile=#1,linestep=#2]%
6 \noindent\fbox{\parbox{25\zw}{%
7 \baselineskip14pt\noindent
8 \setbox2=\vtop{\noindent\hsize20\zw\textcolor{cyan!30!white}{%
9 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
10 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
11 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
12 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
13 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
14 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
15 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
16 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
17 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
18 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
19 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
20 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
21 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
22 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
23 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
24 □□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■□□□□■
26 }}\dp2=0pt\rlap{\copy2}\par\vspace*{-\baselineskip}
27 \textbf{profile: #1, linestep: #2}\par
28 \vrule height 2pt depth 0pt width 10\zw\\
29 \vrule height 2pt depth 0pt width 10\zw\\
30 \the\baselineskip あああああああああああああああ\\
31 あああああああああ$X_{X_{X_X}}$ああああああ\\
33 ……であるから$b=\dfrac1{X_2}$となる.\\
34 一方$\dfrac{A^A}{B_B}=21$なので……\\
35 ……であるから$b=\dfrac1{X_2}$となる.\\%\vadjust{あああああ$\dfrac34$}\\
36 一方$\dfrac{A^A}{B_B}=21$なので……
38 あいであるから$b=\dfrac1{X_2}$となる.新段落!\\
39 一方$\dfrac{A^A}{B_B}=21$なので……
41 \hbox{感じ感じ$\displaystyle\int$}
42 ほげであるから$b=\dfrac1{X_2}$となる.新段落!\\
43 一方$\dfrac{A^A}{B_B}=21$なので……
46 かきであるから$b=\dfrac1{X_2}$となる.hrule無効\\
47 一方$\dfrac{A^A}{B_B}=21$なので……
50 うえであるから$b=\dfrac1{X_2}$prevdepth設定のため無効\\
51 一方$\dfrac{A^A}{B_B}=21$なので……
60 \ltjgetparameter{linestep_factor}
63 \def\R#1#2{\ltjenableadjust[profile=#1,priority=#2]%
64 \noindent\fbox{\parbox[t]{20\zw}{%
65 \baselineskip14pt\noindent
66 \textbf{profile: #1, priority: #2}\par
67 \ltjsetparameter{xkanjiskip=.25\zw plus 20pt minus 20pt}
68 ああxあaaaあxあx\vrule height 30pt depth 30pt width 9.7\zw「\break
69 \vrule height 30pt depth 30pt width9.6\zw xあxあxあaaaああ「\break
78 \ltjenableadjust[profile]
81 \fbox{\parbox[t]{130pt}{\lineskip1pt\textbf{#1pt (\texttt{lineskip}: \the\lineskip)}\\%
82 \noindent\vrule height 5pt depth 50pt width 45pt\kern30pt%
83 \vrule height 5pt depth 50pt width 30pt\\
84 \textcolor{red}{\kern\dimexpr45pt+#1pt\vrule height 50pt depth 5pt width20pt}%
85 \textcolor{blue}{\kern-40pt\vrule height 5pt depth 5pt width 60pt}%
86 }}\hskip0pt\ignorespaces
90 \texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par
92 \R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10}
96 \ltjsetparameter{profile_hgap_factor=2}
97 \texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par
99 \R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10}