summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
diff options
context:
space:
mode:
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.def37
1 files changed, 20 insertions, 17 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 849a9d4d46c..3962e82fbf1 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/multicol-xetex-bidi.def
@@ -7,7 +7,10 @@
%% bidi.dtx (with options: `table,multicol-xetex-bidi.def')
%%
%% __________________________________________________
-%% Copyright (c) 2007--2020 Vafa Khalighi
+%% Vafa Khalighi
+%% tex-persian@vafa.ac
+%%
+%% Copyright (c) 2007--2022 Vafa Khalighi
%% Copyright (c) 2018--2020 bidi-tex GitHub Organization
%%
%% It may be distributed and/or modified under the LaTeX Project Public License,
@@ -18,7 +21,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{50426}
+%% \CheckSum{50477}
%% \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
@@ -35,7 +38,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
-\ProvidesFile{multicol-xetex-bidi.def}[2019/06/14 v1.2 bidi adaptations for multicol package for XeTeX engine]
+\ProvidesFile{multicol-xetex-bidi.def}[2022/02/01 v1.3 bidi adaptations for multicol package for XeTeX engine]
\def\page@sofar{%
\process@cols\mult@rightbox
{\ifvoid\count@
@@ -70,7 +73,7 @@
\fi
}
\def\LTR@column@boxes{%
- \process@cols\mult@gfirstbox{%
+ \process@cols\mult@firstbox{%
\ifdim\dp\count@>\dimen\tw@
\global\dimen\tw@\dp\count@ \fi
\mc@col@status@write
@@ -84,16 +87,13 @@
}
\def\RTL@column@boxes{%
- \ifnum\col@number<\tw@
- \LTR@column@boxes
- \else
- \process@cols\mult@gfirstbox{%
+ \process@cols\mult@firstbox{%
\hskip\hsize
\hss{\columnseprulecolor\vrule
\@width\columnseprule}\hss
}%
\hskip\hsize
- \process@cols\mult@gfirstbox{%
+ \process@cols\mult@firstbox{%
\ifdim\dp\count@>\dimen\tw@
\global\dimen\tw@\dp\count@ \fi
\hskip-\hsize
@@ -109,8 +109,8 @@
\box\mult@rightbox
\hskip-\hsize
\hskip\full@width
- \fi
}
+
\newcommand\RTLmulticolcolumns
{\let\bidi@multicol@align@columns
\RTL@column@boxes}
@@ -132,23 +132,26 @@
columns doesn't seem a good idea.^^J
I therefore use two columns instead}%
\col@number\tw@ \fi
- \ifnum\col@number>10
+ \ifnum\col@number>20
\PackageError{multicol}%
{Too many columns}%
{Current implementation doesn't
- support more than 10 columns.%
+ support more than 20 columns.%
\MessageBreak
- I therefore use 10 columns instead}%
- \col@number10 \fi
- \ifx\@footnotetext\mult@footnotetext\else
+ I therefore use 20 columns instead}%
+ \col@number20 \fi
+ \ifx\@footnotetext\mult@footnotetext
+ \else
\let\orig@footnotetext\@footnotetext
\let\@footnotetext\mult@footnotetext
\fi
- \ifx\@LTRfootnotetext\mult@LTRfootnotetext\else
+ \ifx\@LTRfootnotetext\mult@LTRfootnotetext
+ \else
\let\orig@LTRfootnotetext\@LTRfootnotetext
\let\@LTRfootnotetext\mult@LTRfootnotetext
\fi
- \ifx\@RTLfootnotetext\mult@RTLfootnotetext\else
+ \ifx\@RTLfootnotetext\mult@RTLfootnotetext
+ \else
\let\orig@RTLfootnotetext\@RTLfootnotetext
\let\@RTLfootnotetext\mult@RTLfootnotetext
\fi