OSDN Git Service

ltj-direction.lua: fix that direction can be changed by accident in an align.
[luatex-ja/luatexja.git] / src / ltj-plain.sty
index ba99503..562a1ba 100644 (file)
 
 \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}
+
 %%------------------ all done
 \ltj@plain@AtEnd
 \endinput