• R/O
  • HTTP
  • SSH
  • HTTPS

luatexja: コミット

ソースコードの管理場所


コミットメタ情報

リビジョン69726d92a0eec47be5c695f0f8713adf8ec31471 (tree)
日時2011-11-19 14:52:30
作者Hironori Kitagawa <h_kitagawa2001@yaho...>
コミッターHironori Kitagawa

ログメッセージ

Fixed math.lua.

変更サマリ

差分

--- a/src/luatexja/math.lua
+++ b/src/luatexja/math.lua
@@ -60,6 +60,7 @@ local function conv_jchar_to_hbox(head, sty)
6060 p.sub = conv_jchar_to_hbox_A(p.sub, sty + 1)
6161 p.sup = conv_jchar_to_hbox_A(p.sup, sty + 1)
6262 elseif p.id == id_choice then
63+ p.display = conv_jchar_to_hbox(p.display, 0)
6364 p.text = conv_jchar_to_hbox(p.text, 0)
6465 p.script = conv_jchar_to_hbox(p.script, 1)
6566 p.scriptscript = conv_jchar_to_hbox(p.scriptscript, 2)
@@ -125,4 +126,4 @@ luatexbase.add_to_callback('mlist_to_hlist',
125126 local head = conv_jchar_to_hbox(n, 0);
126127 head = node.mlist_to_hlist(head, display_type, penalties)
127128 return head
128- end,'ltj.mlist_to_hlist', 1)
\ No newline at end of file
129+ end,'ltj.mlist_to_hlist', 1)
Binary files a/test/test07-math.pdf and b/test/test07-math.pdf differ
--- a/test/test07-math.tex
+++ b/test/test07-math.tex
@@ -42,6 +42,10 @@ mathgt: $\mathrm{\mathmc{あa}}\mathmc{あb}\mathgt{あa}$
4242
4343 \LaTeX では数式ファミリ番号は欧文と共用→$\the\jfam$
4444
45+\def\s{\mathchoice{Dあ}{Tあ}{Sあ}{SSあ}}
46+\[
47+\s {\textstyle \s} {\scriptstyle \s} {\scriptscriptstyle \s}
48+\]
4549
4650 \end{document}
4751
旧リポジトリブラウザで表示