summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2011-10-06 23:15:52 +0000
committerKarl Berry <karl@freefriends.org>2011-10-06 23:15:52 +0000
commitb4fefed5b0939741f33ffadc04310e124c70178f (patch)
treed3facbcd7ef880ed8d3366b12b5cfbab8a1a93a6 /Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
parent0cc9d75d99a00ca3206f389fde8fe87cccec4424 (diff)
bidi (6oct11)
git-svn-id: svn://tug.org/texlive/trunk@24222 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def')
-rw-r--r--Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def33
1 files changed, 29 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
index aa5e0618f15..ec89ad8d773 100644
--- a/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
+++ b/Master/texmf-dist/tex/latex/bidi/scrartcl-xetex-bidi.def
@@ -7,12 +7,29 @@
%% bidi.dtx (with options: `scrartcl-xetex-bidi.def')
%%
%% ______________________________________
-%% Copyright © 2009–2011 VAFA KHALIGHI
+%% Copyright © 2009–2012 Vafa Khalighi
%%
%% License information appended.
%%
%%
-\ProvidesFile{scrartcl-xetex-bidi.def}[2011/09/24 v0.5 bidi adaptations for scrartcl class for XeTeX engine]
+\ProvidesFile{scrartcl-xetex-bidi.def}[2012/01/01 v0.6 bidi adaptations for scrartcl class for XeTeX engine]
+\newcommand{\scr@saved@LTRfootnotetext}{}
+\newcommand{\scr@saved@RTLfootnotetext}{}
+\let\scr@saved@footnotetext\@footnotetext
+\let\scr@saved@LTRfootnotetext\@LTRfootnotetext
+\let\scr@saved@RTLfootnotetext\@RTLfootnotetext
+\renewcommand{\@footnotetext}[1]{%
+ \scr@saved@footnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@LTRfootnotetext}[1]{%
+ \scr@saved@LTRfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
+\renewcommand{\@RTLfootnotetext}[1]{%
+ \scr@saved@RTLfootnotetext{#1}%
+ \csname FN@mf@prepare\endcsname
+}
\renewcommand\deffootnote[4][]{%
\long\def\@makefntext##1{%
\setlength{\@tempdimc}{#3}%
@@ -383,6 +400,10 @@
\@tempcnta=\value{mpfootnote}\@tempcntb=\value{footnote}%
\let\scr@tmp@footnotetext=\@footnotetext
\let\@footnotetext=\@gobble
+ \let\scr@tmp@LTRfootnotetext=\@LTRfootnotetext
+ \let\@LTRfootnotetext=\@gobble
+ \let\scr@tmp@RTLfootnotetext=\@RTLfootnotetext
+ \let\@RTLfootnotetext=\@gobble
\sbox\@tempboxa{%
{\capfont{\strut\ignorespaces
#1{{\caplabelfont{#2\captionformat}}}%
@@ -390,6 +411,10 @@
}%
\let\@footnotetext=\scr@tmp@footnotetext
\let\scr@tmp@footnotetext=\undefined
+ \let\@LTRfootnotetext=\scr@tmp@LTRfootnotetext
+ \let\scr@tmp@LTRfootnotetext=\undefined
+ \let\@RTLfootnotetext=\scr@tmp@RTLfootnotetext
+ \let\scr@tmp@RTLfootnotetext=\undefined
\setcounter{footnote}{\@tempcntb}%
\setcounter{mpfootnote}{\@tempcnta}%
\else
@@ -456,14 +481,14 @@
\fi
}
%%
-%% Copyright © 2009–2011 VAFA KHALIGHI <vafaklg@gmail.com>
+%% Copyright © 2009–2012 Vafa Khalighi <vafaklg@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
%% this license is at: http://www.latex-project.org/lppl.txt
%%
%% This work is “author-maintained” (as per LPPL maintenance status)
-%% by VAFA KHALIGHI.
+%% by Vafa Khalighi.
%%
%%
%%