...
(/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/umsb.fd)error: ...e/kmaeda/texmf/tex/luatex/luatexja/src/ltj-direction.lua:639: attempt to perform arithmetic on a nil value
.
\reset@strutbox@ ...ineskiplimit \copy \strutbox }
}
l.252 $\directlua
{% This value depends on the version of LuaTeX.
?
該当行は
process_dir_node = function (hd, gc)
local x, new_dir = hd, ltjs.list_dir or dir_yoko
while x do
local xid = getid(x)
if (xid==id_hlist and has_attr(x, attr_icflag)%PROCESSED_BEGIN_FLAG~=PACKED) -- ←これ
or xid==id_vlist then
hd, x = make_dir_whatsit(hd, x, new_dir, 'process_dir_node:' .. gc)
else
x = node_next(x)
end
end
return hd
end
kitagawa_tfont ブランチの "d9e95ad... Added \utod direction (same as "tate math direction" in pTeX)" 以降で, beamer で luatexja を使おうとするとエラーが出ます.
\documentclass{beamer} \usepackage{luatexja} \begin{document} \end{document}エラーメッセージ:
... (/usr/local/texlive/2014/texmf-dist/tex/latex/amsfonts/umsb.fd)error: ...e/kmaeda/texmf/tex/luatex/luatexja/src/ltj-direction.lua:639: attempt to perform arithmetic on a nil value . \reset@strutbox@ ...ineskiplimit \copy \strutbox } } l.252 $\directlua {% This value depends on the version of LuaTeX. ?該当行は
process_dir_node = function (hd, gc) local x, new_dir = hd, ltjs.list_dir or dir_yoko while x do local xid = getid(x) if (xid==id_hlist and has_attr(x, attr_icflag)%PROCESSED_BEGIN_FLAG~=PACKED) -- ←これ or xid==id_vlist then hd, x = make_dir_whatsit(hd, x, new_dir, 'process_dir_node:' .. gc) else x = node_next(x) end end return hd endなのですが,has_attr(x, attr_icflag) が nil になっている場合があって,それの剰余をとろうとするのでエラーになるようです.