OSDN Git Service

Fix a bug that xkanjiskip is inserted in \hbox{a\null}あ
[luatex-ja/luatexja.git] / src / ltj-latex.sty
index d4059c2..a7bd1d5 100644 (file)
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{ltj-latex}[2013/05/14 LaTeX support of LuaTeX-ja]
 
-% I (HK) don't know why the code below is not necessary.
+% cleanup at end of the document
 %\let\ltj@@orig@end=\@@end
-%\outer\protected\def\@@end{%
-%  \directlua{luatexja.direction.remove_end_whatsit()}\ltj@@orig@end}
+%\protected\def\@@end{%
+%  \directlua{luatexja.ext_cleanup()}\ltj@@orig@end}
 
 % Globally add to the head of a macro (cf. LaTeX2e's \g@addto@macro)
 \long\def\ltj@g@addto@macro#1#2{
@@ -64,6 +64,9 @@
 \ltj@pkgpatch{fontspec}
 \ltj@pkgpatch{stfloats}
 \ltj@pkgpatch{footmisc}
+\ltj@pkgpatch{tascmac}
+\ltj@AtBeginDocument{\@ifpackageloaded{ascmac}{\input{lltjp-tascmac.sty}}{}}% ascmac
+
 \RequirePackage{lltjp-geometry}