summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2018-09-22 21:00:59 +0000
committerKarl Berry <karl@freefriends.org>2018-09-22 21:00:59 +0000
commit4be14a8ad3ab56b99c27d841112f78675bd3c1ca (patch)
tree2ca2bdacf32c25c33e191964de066ef0b565e162 /Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
parent11b17670348e1e440d1a3e2891671f87be10abf5 (diff)
bidi (22sep18)
git-svn-id: svn://tug.org/texlive/trunk@48737 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def55
1 files changed, 53 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
index 177d406260b..67b76522800 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{49745}
+%% \CheckSum{50014}
%% \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{multicol-xetex-bidi.def}[2016/11/27 v0.8 bidi adaptations for multicol package for XeTeX engine]
+\ProvidesFile{multicol-xetex-bidi.def}[2018/09/23 v0.9 bidi adaptations for multicol package for XeTeX engine]
\def\page@sofar{%
\process@cols\mult@rightbox
{\ifvoid\count@
@@ -164,6 +164,57 @@
\kern2.6\p@}
\def\textwidth@footnoterule{\kern-3\p@
\hrule \@width \textwidth \kern 2.6\p@}
+\def\bidi@leave@mult@copyins{%
+ \advance\dimen@-\skip\@bidi@copyins@
+ \advance\dimen@-\ht\@bidi@copyins@
+}
+\bidi@AtEndPreamble{%
+ \if@bidi@csdef{footinsv@r}{%
+ \def\bidi@leave@mult@footins@vr{%
+ \advance\dimen@-\skip\footinsv@r
+ \advance\dimen@-\ht\footinsv@r
+ }%
+ \def\bidi@init@mult@footinsv@r{%
+ \multiply\count\footinsv@r\col@number
+ \multiply\skip \footinsv@r\col@number
+ }%
+ \def\bidi@reinsert@footnotesv@r{\ifvoid\footinsv@r\else
+ \insert\footinsv@r{}\fi}%
+ \bidi@patchcmd{\prepare@multicols}{%
+ \reinsert@footnotes
+ }{%
+ \reinsert@footnotes
+ \bidi@init@mult@footinsv@r
+ \bidi@reinsert@footnotesv@r
+ }{}{}%
+ \bidi@patchcmd{\multi@column@out}{%
+ \ifnum \c@tracingmulticols>\thr@@
+ }{%
+ \ifvoid\footinsv@r\else
+ \PackageWarning{multicol}%
+ {I moved some lines to
+ the next page.\MessageBreak
+ Footnotes on page
+ \thepage\space might be wrong}%
+ \fi
+ \ifnum \c@tracingmulticols>\thr@@
+}{}{}%
+ }{}%
+ \bidi@patchcmd{\multi@column@out}{%
+ \let\ifshr@kingsaved\ifshr@king
+ }{%
+ \if@bidi@csdef{footinsv@r}{%
+ \divide\skip\footinsv@r\col@number
+ \ifvoid\footinsv@r \else
+ \bidi@leave@mult@footins@vr
+ \fi
+ }{}%
+ \ifvoid\@bidi@copyins@ \else
+ \bidi@leave@mult@copyins
+ \fi
+ \let\ifshr@kingsaved\ifshr@king
+ }{}{}%
+}
\endinput
%%
%% End of file `multicol-xetex-bidi.def'.