diff options
author | Karl Berry <karl@freefriends.org> | 2010-01-11 18:47:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-01-11 18:47:10 +0000 |
commit | 3a7e27adc553f5e0ccf8206fff4e757bf3cdf062 (patch) | |
tree | 75c7259adef2093a5209db323b3bbecf67dc1709 /Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def | |
parent | b2653703ac55bf05f550a80ffa1fe05c5fe8bd47 (diff) |
xepersian update (6jan10)
git-svn-id: svn://tug.org/texlive/trunk@16675 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def | 59 |
1 files changed, 48 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def index 9c741464de5..8cf59edcf0c 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def +++ b/Master/texmf-dist/tex/xelatex/xepersian/amsart-xepersian.def @@ -1,24 +1,61 @@ %% %% This is file `amsart-xepersian.def', -%% generated with the docstrip utility. -%% -%% The original source files were: -%% -%% xepersian.dtx (with options: `amsart-xepersian.def') %% %% __________________________________ -%% Copyright © 2008-2009 Vafa Khalighi +%% Copyright © 2008-2010 Vafa Khalighi %% %% License information appended. %% %% +\ProvidesFile{amsart-xepersian.def}[2010/03/01 v0.2 adaptations for amsart class] \renewcommand \thepart {\@tartibi\c@part} -\renewcommand\appendix{\par - \setcounter{section}{0}% - \setcounter{subsection}{0}% - \gdef\thesection{\@harfi\c@section}} +\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 + \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} +\long\def\@RTLfootnotetext#1{% + \begingroup + \setbox\footins + \vbox{\@RTLtrue\reset@font\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} +\long\def\@LTRfootnotetext#1{% + \begingroup + \setbox\footins + \vbox{\@RTLfalse\reset@font\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} %% -%% 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 |