summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def20
1 files changed, 17 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
index c11aca30969..42960ec31bc 100644
--- a/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/longtable-xetex-bidi.def
@@ -12,7 +12,7 @@
%% License information appended.
%%
%%
-\ProvidesFile{longtable-xetex-bidi.def}[2010/07/25 v0.1 bidi adaptations for longtable package for XeTeX engine]
+\ProvidesFile{longtable-xetex-bidi.def}[2012/12/12 v0.2 bidi adaptations for longtable package for XeTeX engine]
\def\LT@makecaption#1#2#3{%
\LT@mcol\LT@cols c{\hbox to\z@{\hss\parbox[t]\LTcapwidth{%
\sbox\@tempboxa{\if@RTL\beginR\fi#1{#2: }#3\if@RTL\endR\fi}%
@@ -23,8 +23,22 @@
\fi
\endgraf\vskip\baselineskip}%
\hss}}}
-%%
-%% Copyright © 2009–2012 Vafa Khalighi <vafakhlg@gmail.com>
+\def\LT@startpbox#1{%
+ \bgroup
+ \let\@footnotetext\LT@p@ftntext
+ \let\@LTRfootnotetext\LT@p@LTRftntext
+ \let\@RTLfootnotetext\LT@p@RTLftntext
+ \setlength\hsize{#1}%
+ \@arrayparboxrestore
+ \vrule \@height \ht\@arstrutbox \@width \z@}
+\def\LT@p@LTRftntext#1{%
+ \edef\@tempa{\the\LT@p@ftn\noexpand\LTRfootnotetext[\the\c@footnote]}%
+ \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
+\def\LT@p@RTLftntext#1{%
+ \edef\@tempa{\the\LT@p@ftn\noexpand\RTLfootnotetext[\the\c@footnote]}%
+ \global\LT@p@ftn\expandafter{\@tempa{#1}}}%
+%%
+%% Copyright © 2009–2012 Vafa Khalighi <vafak12@gmail.com>
%%
%% It may be distributed and/or modified under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of