diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty |
Initial commit
Diffstat (limited to 'macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty')
-rw-r--r-- | macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty b/macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty new file mode 100644 index 0000000000..00602884ea --- /dev/null +++ b/macros/luatex/generic/luatexja/src/patches/lltjp-preview.sty @@ -0,0 +1,22 @@ +% +% lltjp-preview.sty +% + +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{lltjp-preview}[2018/01/20 Patch to preview for LuaTeX-ja] + +\RequirePackage{etoolbox,preview} +\newbox\ltj@preview@box + +\patchcmd\pr@endbox{% + \pr@ship@end +}{% + \setbox\ltj@preview@box=\box\AtBeginShipoutBox + \setbox\AtBeginShipoutBox=\vbox{\yoko\box\pr@box}% + \directlua{luatexja.direction.finalize()}% + \setbox\pr@box=\box\AtBeginShipoutBox + \setbox\AtBeginShipoutBox=\box\ltj@preview@box + \pr@ship@end +}{}{} + +\endinput |