summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def20
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
index f4c68b30ab3..289d1314ba3 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/latex-xetex-bidi.def
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{49648}
+%% \CheckSum{49766}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -34,7 +34,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
-\ProvidesFile{latex-xetex-bidi.def}[2017/12/29 v1.3.2 bidi adaptations for `latex.ltx' for XeTeX engine]
+\ProvidesFile{latex-xetex-bidi.def}[2018/02/22 v1.3.3 bidi adaptations for `latex.ltx' for XeTeX engine]
\newcommand{\TeXXeTOn}{\TeXXeTstate=1 }
\newcommand{\TeXXeTOff}{\TeXXeTstate=0 }
\TeXXeTOn
@@ -668,6 +668,8 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\global\let\@@if@newlist\if@newlist
\global\@newlistfalse
\@parboxrestore
+ \global\let\bidi@BeforeOutputPageShipOut\@firstofone
+ \bidi@beforeoutputpageshipouthook
\shipout \vbox{%
\set@typeset@protect
\aftergroup \endgroup
@@ -708,6 +710,8 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\@begindvi
\vskip \topmargin
\moveright\@themargin \vbox {%
+ \global\let\bidi@BeforeHeader\@firstofone
+ \bidi@beforeheaderhook
\setbox\@tempboxa \vbox to\headheight{%
\vfil
\color@hbox
@@ -718,23 +722,35 @@ $\@@underline{\hbox{#1}}\m@th$\relax\fi\fi}
\dp\@tempboxa \z@
\box\@tempboxa
\vskip \headsep
+ \global\let\bidi@BeforeOutputBoxOutputPage\@firstofone
+ \bidi@beforeoutputboxoutputpagehook
\box\@outputbox
+ \global\let\bidi@AfterOutputBoxOutputPage\@firstofone
+ \bidi@afteroutputboxoutputpagehook
\ifvoid\@bidi@copyins@
\else
\vskip\skip\@bidi@copyins@
\unvbox\@bidi@copyins@
\fi
+ \global\let\bidi@BeforeFooter\@firstofone
+ \bidi@beforefooterhook
\baselineskip \footskip
\color@hbox
\normalcolor
\hb@xt@\textwidth{\if@RTLmain\@RTLtrue\beginR\else\@RTLfalse\beginL\fi\@thefoot\if@RTLmain\endR\else\endL\fi}%
\color@endbox
+ \global\let\bidi@AfterFooter\@firstofone
+ \bidi@afterfooterhook
}%
}%
+ \global\let\bidi@AfterOutputPageShipOut\@firstofone
+ \bidi@afteroutputpageshipouthook
\global\let\if@newlist\@@if@newlist
\global \@colht \textheight
\stepcounter{page}%
\let\firstmark\botmark
+ \global\let\bidi@AtEndOutputPage\@firstofone
+ \bidi@atendoutputpagehook
}
\long\def\@makecaption#1#2{%
\vskip\abovecaptionskip