diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def index 62775e2417b..ca8b3507291 100644 --- a/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def +++ b/Master/texmf-dist/tex/xelatex/bidi/longtable-xetex-bidi.def @@ -17,7 +17,7 @@ %% by Vafa Khalighi. %% %% -%% \CheckSum{46960} +%% \CheckSum{47003} %% \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{longtable-xetex-bidi.def}[2013/04/01 v0.3 bidi adaptations for longtable package for XeTeX engine] +\ProvidesFile{longtable-xetex-bidi.def}[2016/09/09 v0.4 bidi adaptations for longtable package for XeTeX engine] \def\LT@array[#1]#2{% \refstepcounter{table}\stepcounter{LT@tables}% \if l#1% @@ -98,6 +98,27 @@ \fi \endgraf\vskip\baselineskip}% \hss}}} +\@ifpackageloaded{caption}{% + \renewcommand\LT@makecaption[3]{% + \caption@LT@make{% + \caption@settype*\LTcaptype + \ifdim\LTcapwidth=4in \else + \setcaptionwidth\LTcapwidth + \fi + \caption@setoptions{longtable}% + \caption@setoptions{@longtable}% + \caption@LT@setup + \caption@setautoposition{\ifcase\LT@rows t\else b\fi}% + \caption@startrue#1\caption@starfalse + \caption@prepare@stepcounter\LTcaptype{LT}% + \caption@begin\LTcaptype + \caption@normalsize + \vskip-\ht\strutbox + \caption@iftop{\vskip\belowcaptionskip}{\vskip\abovecaptionskip}% + \caption@@make{#2}{#3}\endgraf + \caption@iftop{\vskip\abovecaptionskip}{\vskip\belowcaptionskip}% + \caption@end}}% +}{} \def\LT@startpbox#1{% \bgroup \let\@footnotetext\LT@p@ftntext |