diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def index db865f4844e..5054356cd1c 100644 --- a/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/scrreprt-xetex-bidi.def @@ -7,12 +7,29 @@ %% bidi.dtx (with options: `scrreprt-xetex-bidi.def') %% %% ______________________________________ -%% Copyright © 2009–2011 VAFA KHALIGHI +%% Copyright © 2009–2012 Vafa Khalighi %% %% License information appended. %% %% -\ProvidesFile{scrreprt-xetex-bidi.def}[2011/09/24 v0.5 bidi adaptations for scrreprt class for XeTeX engine] +\ProvidesFile{scrreprt-xetex-bidi.def}[2012/01/01 v0.6 bidi adaptations for scrreprt 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}% @@ -396,6 +413,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}}}% @@ -403,6 +424,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 @@ -469,14 +494,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. %% %% %% |