X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test%2Ftest27-lineprofile.tex;h=7c8e33760965d41343e8afdf0217d839b37b2613;hb=f078ac2f7998a102c7ec765e725f2269eed9f872;hp=ce3ec76497d6256db85d9d5b79fa568dc41eb776;hpb=e9627ad8aa94eed8368cc4a1d497f73251b8aa3e;p=luatex-ja%2Fluatexja.git diff --git a/test/test27-lineprofile.tex b/test/test27-lineprofile.tex index ce3ec76..7c8e337 100644 --- a/test/test27-lineprofile.tex +++ b/test/test27-lineprofile.tex @@ -57,6 +57,8 @@ \R{false}{true} \R{true}{true} +\ltjgetparameter{linestep_factor} + \ltjdisableadjust \def\R#1#2{\ltjenableadjust[profile=#1,priority=#2]% \noindent\fbox{\parbox[t]{20\zw}{% @@ -64,7 +66,7 @@ \textbf{profile: #1, priority: #2}\par \ltjsetparameter{xkanjiskip=.25\zw plus 20pt minus 20pt} ああxあaaaあxあx\vrule height 30pt depth 30pt width 9.7\zw「\break - \vrule height 30pt depth 30pt width9.7\zw xあxあxあaaaああ「\break + \vrule height 30pt depth 30pt width9.6\zw xあxあxあaaaああ「\break }}} \R{false}{false}% @@ -72,4 +74,28 @@ \R{false}{true}% \R{true}{true}% +\ltjdisableadjust +\ltjenableadjust[profile] + +\def\R#1{% + \fbox{\parbox[t]{130pt}{\lineskip1pt\textbf{#1pt (\texttt{lineskip}: \the\lineskip)}\\% + \noindent\vrule height 5pt depth 50pt width 45pt\kern30pt% + \vrule height 5pt depth 50pt width 30pt\\ + \textcolor{red}{\kern\dimexpr45pt+#1pt\vrule height 50pt depth 5pt width20pt}% + \textcolor{blue}{\kern-40pt\vrule height 5pt depth 5pt width 60pt}% + }}\hskip0pt\ignorespaces +} + +\newpage +\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par +\noindent +\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10} + + +\newpage +\ltjsetparameter{profile_hgap_factor=2} +\texttt{profile\_hgap\_factor=\ltjgetparameter{profile_hgap_factor}}\par +\noindent +\R{0}\R{0.5}\R{1}\R{2}\R{8}\R{9}\R{10} + \end{document}