OSDN Git Service

Import from old kitagawa_ruby branch (may not work now)
[luatex-ja/luatexja.git] / src / ltj-latex.sty
index 84901b0..fe0e69b 100644 (file)
@@ -12,7 +12,7 @@
 \def\luatexjalatexLoaded{\endinput}
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{ltj-latex}[2012/04/21 LuaLaTeX-ja]
+\ProvidesPackage{ltj-latex}[2013/05/14 LaTeX support of LuaTeX-ja]
 
 % Globally add to the head of a macro (cf. LaTeX2e's \g@addto@macro)
 \long\def\ltj@g@addto@macro#1#2{
@@ -39,9 +39,8 @@
 
 %%% default parameters
 \directlua{
-  luatexja.stack.charprop_stack_table[0] 
-    = dofile(assert(kpse.find_file('ltj-kinsoku.lua', 'tex'),
-      "File `ltj-kinsoku.lua' not found"))
+  local s = kpse.find_file('ltj-kinsoku.lua', 'tex')
+  luatexja.stack.charprop_stack_table[0] = s and dofile(s) or {}
 }
 
 \ltjsetparameter{kanjiskip=0pt plus 0.4pt minus 0.4pt,
@@ -57,6 +56,7 @@
 \ltj@pkgpatch{listings}
 \ltj@pkgpatch{unicode-math}
 \ltj@pkgpatch{xunicode}
+\ltj@pkgpatch{fontspec}
 
 
 %%------------------ all done