summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-07-03 22:04:32 +0000
committerKarl Berry <karl@freefriends.org>2015-07-03 22:04:32 +0000
commit7bccd1325cbbedb9f5352aabe50e75d0c1f20cca (patch)
treecc6cfb9077b5d1333e643a89c96e2ee7284ab2ae /Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
parentbe23614d2a6893dde069ce369010cd1b1bbfadb4 (diff)
bidi (3jul15)
git-svn-id: svn://tug.org/texlive/trunk@37745 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def51
1 files changed, 49 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
index 53e4de52fe8..87d022ef1dc 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/scrreprt-xetex-bidi.def
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{44377}
+%% \CheckSum{44602}
%% \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{scrreprt-xetex-bidi.def}[2012/01/01 v0.6 bidi adaptations for scrreprt class for XeTeX engine]
+\ProvidesFile{scrreprt-xetex-bidi.def}[2015/07/04 v0.7 bidi adaptations for scrreprt class for XeTeX engine]
\newcommand{\scr@saved@LTRfootnotetext}{}
\newcommand{\scr@saved@RTLfootnotetext}{}
\let\scr@saved@footnotetext\@footnotetext
@@ -515,6 +515,53 @@
\vskip\belowcaptionskip
\fi
}
+\bidi@AfterFile{longtable-xetex-bidi.def}{%
+ \@ifpackageloaded{caption2}{\@komalongtablefalse
+ \scr@caption@before@longtable@warning{caption2}%
+ }{}%
+ \if@komalongtable
+ \renewcommand{\LT@makecaption}[3]{%
+ \noalign{%
+ \if@captionabove
+ \vskip\belowcaptionskip
+ \else
+ \vskip\abovecaptionskip
+ \fi
+ }%
+ \LT@mcol\LT@cols c{%
+ \hbox to\z@{\hss\parbox[t]\linewidth{%
+ \@@makecaption{#1}{#2}{#3}%
+ \endgraf
+ \if@captionabove
+ \vskip\abovecaptionskip
+ \else
+ \vskip\belowcaptionskip
+ \fi
+ }%
+ \hss
+ }%
+ }%
+ }%
+ \renewcommand*{\scr@LT@array}{}%
+ \let\scr@LT@array=\LT@array
+ \renewcommand*{\LT@array}{%
+ \let\scr@caption=\LT@caption
+ \def\captionabove{\noalign{\global\@captionabovetrue}%
+ \scr@caption}%
+ \def\captionbelow{\noalign{\global\@captionabovefalse}%
+ \scr@caption}%
+ \if@tablecaptionabove
+ \let\LT@caption=\captionabove
+ \else
+ \let\LT@caption=\captionbelow
+ \fi
+ \scr@LT@array
+ }%
+ \ClassInfo{\KOMAClassName}{%
+ longtable captions redefined%
+ }%
+ \fi
+}
\endinput
%%
%% End of file `scrreprt-xetex-bidi.def'.