diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-09 19:45:14 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-09 19:45:14 +0000 |
commit | ff3b2a89ec36aa462e38987d09d6ef8ba25c0bbd (patch) | |
tree | b15c55e1530ac3b24a33092a04af88a5fc3095a2 /Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty | |
parent | 556a719cebe24900f0c2bcec3c554e7c7a8ad3f9 (diff) |
luatexja (9apr23)
git-svn-id: svn://tug.org/texlive/trunk@66814 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty index af49aef7faf..fff34327c77 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty +++ b/Master/texmf-dist/tex/luatex/luatexja/patches/lltjcore.sty @@ -3,7 +3,7 @@ % \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{lltjcore}[2022-05-30 Patch to LaTeX2e Kernel for LuaTeX-ja] +\ProvidesPackage{lltjcore}[2023-02-26 Patch to LaTeX2e Kernel for LuaTeX-ja] \RequirePackage{etoolbox} %%% expl3 @@ -201,6 +201,20 @@ \patchcmd\@outputpage{\reset@font}{\@tombowreset@@paper\reset@font}{}{} \patchcmd\@outputpage{\@begindvi}{\@begindvi\@outputtombow}{}{} +% +\pretocmd\@floatboxreset{\pltx@save@float@dir}{}{} +\patchcmd\@endfloatbox{\outer@nobreak}{\outer@nobreak\pltx@check@float@dir}{}{} +\def\pltx@save@float@dir{% + \edef\pltx@float@dir@first{\ltjgetparameter{direction}}} +\def\pltx@check@float@dir{% + \ifx\pltx@float@dir@first\@undefined\else + \ifnum\ltjgetparameter{direction}=\pltx@float@dir@first\else + \pltx@err@float@dir + \fi + \fi} +\def\pltx@err@float@dir{% + \@latex@error{Direction change inside float!?\MessageBreak + Use \noexpand\layoutcaption provided in \string\usepackage{lltjext}}\@ehc} %%% Remove extra xkanjiskip \renewcommand\@makefnmark{% \unless\ifnum\ltjgetparameter{direction}=3 |