summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def76
1 files changed, 39 insertions, 37 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
index d09ae8e6953..88c6b9c3ec2 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def
@@ -17,50 +17,52 @@
\def\appendix{\par\c@section\z@ \c@subsection\z@
\let\sectionname\appendixname
\def\thesection{\@harfi\c@section}}
+
\long\def\@footnotetext#1{%
- \begingroup
- \setbox\footins
- \vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi\reset@font\footnotesize
+ \insert\footins{%
+ \if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi%
+ \normalfont\footnotesize
\interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
- \bidi@footnotetext@dir{#1}%
- \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
- {\rule{\z@}{\footnotesep}\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}%
- \bidi@footnotetext@after
- \insert\footins{\unvbox\footins}%
- \endgroup}
+ \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
+ \floatingpenalty\@MM \hsize\columnwidth
+ \@parboxrestore \parindent\normalparindent \sloppy
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark}%
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\if@RTL@footnote#1\else\latinfont#1\fi\unskip\strut\par}}}
+
\long\def\@RTLfootnotetext#1{%
- \begingroup
- \setbox\footins
- \vbox{\@RTLtrue\reset@font\footnotesize
+ \insert\footins{%
+ \@RTLtrue%
+ \normalfont\footnotesize
\interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
- \bidi@footnotetext@dir{#1}%
- \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
- {\rule{\z@}{\footnotesep}\ignorespaces\persianfont #1\unskip\strut\par}}%
- \bidi@footnotetext@after
- \insert\footins{\unvbox\footins}%
- \endgroup}
+ \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
+ \floatingpenalty\@MM \hsize\columnwidth
+ \@parboxrestore \parindent\normalparindent \sloppy
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark}%
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\persianfont #1\unskip\strut\par}}}
+
\long\def\@LTRfootnotetext#1{%
- \begingroup
- \setbox\footins
- \vbox{\@RTLfalse\reset@font\footnotesize
+ \insert\footins{%
+ \@RTLfalse%
+ \normalfont\footnotesize
\interlinepenalty\interfootnotelinepenalty
- \splittopskip\footnotesep
- \splitmaxdepth \dp\strutbox \floatingpenalty \@MM
- \hsize\columnwidth \@parboxrestore \parindent\normalparindent \sloppy
- \bidi@footnotetext@dir{#1}%
- \protected@edef\@currentlabel{\csname p@footnote\endcsname\@thefnmark}\@makefntext
- {\rule{\z@}{\footnotesep}\ignorespaces\latinfont #1\unskip\strut\par}}%
- \bidi@footnotetext@after
- \insert\footins{\unvbox\footins}%
- \endgroup}
+ \splittopskip\footnotesep \splitmaxdepth \dp\strutbox
+ \floatingpenalty\@MM \hsize\columnwidth
+ \@parboxrestore \parindent\normalparindent \sloppy
+ \protected@edef\@currentlabel{%
+ \csname p@footnote\endcsname\@thefnmark}%
+ \@makefntext{%
+ \rule\z@\footnotesep\ignorespaces\latinfont #1\unskip\strut\par}}}
+
+\footdir@temp\footdir@ORG@xepersian@amsart@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}%
+\footdir@temp\footdir@ORG@xepersian@amsart@RTLfootnotetext\@RTLfootnotetext{R}%
+\footdir@temp\footdir@ORG@xepersian@amsart@LTRfootnotetext\@LTRfootnotetext{L}%
+
%%
-%% Copyright © 2008–2012 Vafa Khalighi <vafakhlg@gmail.com>
+%% Copyright © 2008–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