diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def index e71891a73be..8df109fb1f0 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def +++ b/Master/texmf-dist/tex/xelatex/xepersian/footnote-bidi-xepersian.def @@ -1,17 +1,14 @@ %% %% This is file `footnote-bidi-xepersian.def', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% xepersian.dtx (with options: `footnote-bidi-xepersian.def') + %% %% __________________________________ -%% Copyright © 2008-2009 Vafa Khalighi +%% Copyright © 2008-2010 Vafa Khalighi %% %% License information appended. %% %% +\ProvidesFile{footnote-bidi-xepersian.def}[2010/03/01 v0.2 footnote macros for xepersian package] \long\def\@footnotetext#1{% \begingroup \setbox\footins @@ -54,50 +51,50 @@ \bidi@footnotetext@after \insert\footins{\unvbox\footins}% \endgroup} -\long\def\@mpfootnotetext#1{ - \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi +\long\def\@mpfootnotetext#1{% + \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% \unvbox\@mpfootins \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark} + {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \bidi@footnotetext@dir{#1} - \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi - \@makefntext{ - \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox} + \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\@finalstrut\strutbox}% \color@endgroup}} -\long\def\@mpRTLfootnotetext#1{ - \global\setbox\@mpfootins\vbox{\@RTLtrue +\long\def\@mpRTLfootnotetext#1{% + \global\setbox\@mpfootins\vbox{\@RTLtrue% \unvbox\@mpfootins \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark} + {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \bidi@footnotetext@dir{#1} - \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi - \@makefntext{ - \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox} + \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\persianfont#1\@finalstrut\strutbox}% \color@endgroup}} -\long\def\@mpLTRfootnotetext#1{ - \global\setbox\@mpfootins\vbox{\@RTLfalse +\long\def\@mpLTRfootnotetext#1{% + \global\setbox\@mpfootins\vbox{\@RTLfalse% \unvbox\@mpfootins \reset@font\footnotesize \hsize\columnwidth \@parboxrestore \protected@edef\@currentlabel - {\csname p@mpfootnote\endcsname\@thefnmark} + {\csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \bidi@footnotetext@dir{#1} - \if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi - \@makefntext{ - \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox} + \ifnum\c@mpfootnote=1\if@RTL\global\let\bidi@footnoterule\right@footnote\else\global\let\bidi@footnoterule\left@footnote\fi\fi + \@makefntext{% + \rule\z@\footnotesep\ignorespaces\latinfont#1\@finalstrut\strutbox}% \color@endgroup}} %% -%% Copyright © 2008-2009 by Vafa Khalighi <vafa@users.berlios.de> +%% Copyright © 2008-2010 by Vafa Khalighi <vafa@users.berlios.de> %% %% Distributable under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of |