diff options
author | Karl Berry <karl@freefriends.org> | 2012-10-31 21:48:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-10-31 21:48:03 +0000 |
commit | 94d42d7395b8167256c615f1045aef29418dd937 (patch) | |
tree | c40cb68a63c866d335f444feb10e14e03d824c36 /Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def | |
parent | c7b0de93190a3c0d8e3ee9d88e79da7d21a27e31 (diff) |
new pgf/tikz package bidi (31oct12)
git-svn-id: svn://tug.org/texlive/trunk@28144 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def | 114 |
1 files changed, 54 insertions, 60 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def b/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def index 9be540bf844..6f351875373 100644 --- a/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def +++ b/Master/texmf-dist/tex/latex/bidi/extrafootnotefeatures.def @@ -12,64 +12,64 @@ %% License information appended. %% %% -\ProvidesFile{extrafootnotefeatures}[2012/01/01 v0.3 bidi extra footnote features for XeTeX engine] -\g@addto@macro\document{\textwidthfootnoterule} +\ProvidesFile{extrafootnotefeatures}[2012/12/12 v0.4 bidi extra footnote features for XeTeX engine] +\let\autofootnoterule\relax +\let\rightfootnoterule\relax +\let\leftfootnoterule\relax +\let\textwidthfootnoterule\relax +\let\LRfootnoterule\relax +\def\footnoterule{\kern-3\p@ + \hrule \@width \columnwidth \kern 2.6\p@} \bidi@ensure@newcommand{\setRTLparagraphfootnotes}{\@parafootRTLtrue} \bidi@ensure@newcommand{\setLTRparagraphfootnotes}{\@parafootRTLfalse} -\long\def\@footnotetext#1{% - \begingroup - \setbox\footins - \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi +\renewcommand{\@footnotetext}[1]{% + \insert\footins{% + \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule\z@\footnotesep\ignorespaces{\foottextfont #1}% - \@finalstrut\strutbox}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup% - \m@mmf@prepare} -\long\def\@RTLfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLtrue% + \reset@font + \foottextfont + \@preamfntext + \hsize\columnwidth + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces{\foottextfont #1}% + \@finalstrut\strutbox}% + \color@endgroup}% + \m@mmf@prepare} +\renewcommand{\@RTLfootnotetext}[1]{% + \insert\footins{% + \@RTLtrue% \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\RTLfoottextfont - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule\z@\footnotesep\ignorespaces{\RTLfoottextfont #1}% - \@finalstrut\strutbox}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup% - \m@mmf@prepare} -\long\def\@LTRfootnotetext#1{% - \begingroup - \setbox\footins - \vbox{\@RTLfalse% + \reset@font + \RTLfoottextfont + \@preamfntext + \hsize\columnwidth + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces{\RTLfoottextfont #1}% + \@finalstrut\strutbox}% + \color@endgroup}% + \m@mmf@prepare} +\renewcommand{\@LTRfootnotetext}[1]{% + \insert\footins{% + \@RTLfalse% \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\LTRfoottextfont - \interlinepenalty\interfootnotelinepenalty - \splittopskip\footnotesep - \splitmaxdepth \dp\strutbox \floatingpenalty \@MM - \hsize\columnwidth \@parboxrestore - \bidi@footnotetext@dir{#1}% - \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext - {\rule\z@\footnotesep\ignorespaces{\LTRfoottextfont #1}% - \@finalstrut\strutbox}}% - \bidi@footnotetext@after - \insert\footins{\unvbox\footins}% - \endgroup% - \m@mmf@prepare} + \reset@font + \LTRfoottextfont + \@preamfntext + \hsize\columnwidth + \protected@edef\@currentlabel{% + \csname p@footnote\endcsname\@thefnmark}% + \color@begingroup + \@makefntext{% + \rule\z@\footnotesep\ignorespaces{\LTRfoottextfont #1}% + \@finalstrut\strutbox}% + \color@endgroup}% + \m@mmf@prepare} \renewcommand{\@mpfootnotetext}[1]{% \global\setbox\@mpfootins\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% \unvbox\@mpfootins @@ -79,8 +79,6 @@ \csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \reset@font% - \bidi@footnotetext@dir{#1} - \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{\foottextfont #1}% \@finalstrut\strutbox}% @@ -94,8 +92,6 @@ \csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \reset@font% - \bidi@footnotetext@dir{#1} - \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{\LTRfoottextfont #1}% \@finalstrut\strutbox}% @@ -109,8 +105,6 @@ \csname p@mpfootnote\endcsname\@thefnmark}% \color@begingroup \reset@font% - \bidi@footnotetext@dir{#1} - \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{\RTLfoottextfont #1}% \@finalstrut\strutbox}% @@ -1819,7 +1813,7 @@ \bidi@ensure@newcommand{\feetabovefloat}{\gdef\@makecol{\mem@makecol}} \feetabovefloat% %% -%% Copyright © 2009–2012 Vafa Khalighi <vafakhlg@gmail.com> +%% Copyright © 2009–2012 Vafa Khalighi <vafak12@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 |