summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def20
1 files changed, 14 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
index 13cffd46bc2..2a5434be334 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/fix2col-xetex-bidi.def
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{47809}
+%% \CheckSum{47931}
%% \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{fix2col-xetex-bidi.def}[2013/04/10 v0.3 bidi adaptations for fix2col package for XeTeX engine]
+\ProvidesFile{fix2col-xetex-bidi.def}[2017/05/06 v0.4 bidi adaptations for fix2col package for XeTeX engine]
\def\RTL@outputdblcol{%
\if@firstcolumn
\global\@firstcolumnfalse
@@ -57,9 +57,13 @@
\setbox\@outputbox \vbox {\hbox to\textwidth {%
\hskip \columnwidth
\hfil \vrule width\columnseprule \hfil
-\hbox to\columnwidth {\box\@leftcolumn \hss}%
+\hbox to\columnwidth {%
+\bidi@firstcolumn@status@write%
+\box\@leftcolumn \hss}%
\hskip -\textwidth
-\hbox to\columnwidth{\box\@outputbox \hss}%
+\hbox to\columnwidth{%
+\bidi@lastcolumn@status@write%
+\box\@outputbox \hss}%
\hskip \columnsep
\hskip \columnwidth }}%
\@combinedblfloats \@setmarks \@outputpage
@@ -89,11 +93,15 @@
\global\@firstcolumntrue
\setbox\@outputbox\vbox{%
\hb@xt@\textwidth{%
- \hb@xt@\columnwidth{\box\@leftcolumn \hss}%
+ \hb@xt@\columnwidth{%
+ \bidi@firstcolumn@status@write%
+ \box\@leftcolumn \hss}%
\hfil
\vrule \@width\columnseprule
\hfil
- \hb@xt@\columnwidth{\box\@outputbox \hss}}}%
+ \hb@xt@\columnwidth{%
+ \bidi@lastcolumn@status@write%
+ \box\@outputbox \hss}}}%
\@combinedblfloats
\@setmarks
\@outputpage