OSDN Git Service

stopped to set luatexja.direction.shipout_lthook=nil
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Mon, 17 May 2021 01:54:45 +0000 (10:54 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Mon, 17 May 2021 01:54:45 +0000 (10:54 +0900)
src/ltj-latex.sty
src/luatexja.lua

index a96d6ee..a6460c7 100644 (file)
@@ -12,7 +12,7 @@
 \def\luatexjalatexLoaded{\endinput}
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltj-latex}[2021-05-11 LaTeX support of LuaTeX-ja]
+\ProvidesPackage{ltj-latex}[2021-05-17 LaTeX support of LuaTeX-ja]
 
 \endlinechar=13
 
@@ -46,7 +46,6 @@
   \ifcsname tex_shipout:D\endcsname
     \expandafter\let\csname tex_shipout:D\endcsname\ltj@shipout
   \fi
-  \directlua{luatexja.direction.shipout_lthook = nil}
 \else
   \directlua{%
     luatexbase.add_to_callback('pre_shipout_filter',luatexja.direction.shipout_lthook, 'ltj.direction', 1)
index 8c01db1..878f791 100644 (file)
@@ -521,7 +521,7 @@ local function debug_show_node_X(p,print_fn, limit, inner_depth)
             s = s .. ' stream=' .. p.stream
             print_fn(s)
             for i=1,#p.data do
-               print_fn(s .. '  [' .. i .. '] = ' .. tostring(p.data[i].csname))
+               print_fn(s .. '  [' .. i .. '] = ' .. tostring(p.data[i] and p.date[i].csname))
             end
          elseif p.subtype==16 then
             s = s .. ' mode=' .. p.mode .. ', literal="' .. p.data .. '"'