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$なので……
61 \def\R#1#2{\ltjenableadjust[profile=#1,priority=#2]%
62 \noindent\fbox{\parbox[t]{20\zw}{%
63 \baselineskip14pt\noindent
64 \textbf{profile: #1, priority: #2}\par
65 \ltjsetparameter{xkanjiskip=.25\zw plus 20pt minus 20pt}
66 ああ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