OSDN Git Service

Redefining \@@end does not work with bm package
[luatex-ja/luatexja.git] / src / ltj-plain.sty
index c512022..e791fa2 100644 (file)
@@ -92,9 +92,9 @@
 \ltjsetparameter{jacharrange={-1, +2, +3, -4, -5, +6, +7, +8}}
 
 \directlua{for x=128,255 do luatexja.math.is_math_letters[x] = true end}
-\let\ltj@@orig@end=\end
-\outer\protected\def\end{%
-  \directlua{luatexja.direction.remove_end_whatsit()}\ltj@@orig@end}
+\let\ltj@@orig@end=\@@end
+\protected\def\@@end{%
+  \directlua{luatexja.ext_cleanup()}\ltj@@orig@end}
 
 %%------------------ all done
 \ltj@plain@AtEnd