5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{lltjp-preview}[2018/01/20 Patch to preview for LuaTeX-ja]
8 \RequirePackage{etoolbox,preview,luatexja}
9 \newbox\ltj@preview@box
14 \setbox\ltj@preview@box=\box\AtBeginShipoutBox
15 \setbox\AtBeginShipoutBox=\vbox{\yoko\box\pr@box}%
16 \directlua{luatexja.direction.finalize()}%
17 \setbox\pr@box=\box\AtBeginShipoutBox
18 \setbox\AtBeginShipoutBox=\box\ltj@preview@box