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/amsart-xetex-bidi.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/amsart-xetex-bidi.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def | 85 |
1 files changed, 45 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def index 0ceed57569d..57efb738f92 100644 --- a/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def +++ b/Master/texmf-dist/tex/latex/bidi/amsart-xetex-bidi.def @@ -12,7 +12,7 @@ %% License information appended. %% %% -\ProvidesFile{amsart-xetex-bidi.def}[2011/08/26 v0.6 bidi adaptations for amsart class for XeTeX engine] +\ProvidesFile{amsart-xetex-bidi.def}[2012/12/12 v0.7 bidi adaptations for amsart class for XeTeX engine] \def\@tocline#1#2#3#4#5#6#7{\relax \ifnum #1>\c@tocdepth % then omit \else @@ -37,54 +37,56 @@ \def\part{\@startsection{part}{0}% \z@{\linespacing\@plus\linespacing}{.5\linespacing}% {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}} -\def\right@footnote{% +\def\right@footnoterule{% \hbox to \columnwidth {\beginR \vbox{\kern-.4\p@ \hrule\@width 5pc\kern11\p@\kern-\footnotesep}\hfil\endR}} -\def\left@footnote{\kern-.4\p@ +\def\left@footnoterule{\kern-.4\p@ \hrule\@width 5pc\kern11\p@\kern-\footnotesep} + \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#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#1\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 #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#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 #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#1\unskip\strut\par}}} + +\footdir@temp\footdir@ORG@bidi@amsart@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@bidi@amsart@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@bidi@amsart@LTRfootnotetext\@LTRfootnotetext{L}% + \renewenvironment{thebibliography}[1]{% \@bibtitlestyle \normalfont\bibliofont\labelsep .5em\relax @@ -108,6 +110,9 @@ \if@RTL\raggedleft\else\raggedright\fi \hyphenpenalty\@M \footnotesize} +\def\@idxitem{\par\hangindent \if@RTL-\fi2em} +\def\subitem{\par\hangindent \if@RTL-\fi2em\hspace*{1em}} +\def\subsubitem{\par\hangindent \if@RTL-\fi3em\hspace*{2em}} \def\maketitle{\par \@topnum\z@ % this prevents figures from falling at the top of page 1 \@setcopyright @@ -130,7 +135,7 @@ \@cleartopmattertags } %% -%% 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 |