diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def | 85 |
1 files changed, 45 insertions, 40 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def index ab978b9b94e..0f6d6ed1afd 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def +++ b/Master/texmf-dist/tex/xelatex/xepersian/imsproc-xepersian.def @@ -12,7 +12,7 @@ %% License information appended. %% %% -\ProvidesFile{imsproc-xepersian.def}[2012/05/03 v0.1 implementation of imsproc class for xepersian package] +\ProvidesFile{imsproc-xepersian.def}[2012/12/12 v0.1 implementation of imsproc class for xepersian package] \newenvironment{thebibliography}[1]{% \@bibtitlestyle \normalfont\bibliofont\labelsep .5em\relax @@ -36,62 +36,67 @@ \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}} \renewcommand \thepart {\@tartibi\c@part} \def\appendix{\par\c@section\z@ \c@subsection\z@ \let\sectionname\appendixname \def\thesection{\@harfi\c@section}} -\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} \def\@makefnmark{% \leavevmode \raise.9ex\hbox{\fontsize\sf@size\z@\normalfont\@thefnmark}% } + \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@imsproc@footnotetext\@footnotetext{\if@RTL@footnote R\else L\fi}% +\footdir@temp\footdir@ORG@xepersian@imsproc@RTLfootnotetext\@RTLfootnotetext{R}% +\footdir@temp\footdir@ORG@xepersian@imsproc@LTRfootnotetext\@LTRfootnotetext{L}% + \def\part{\@startsection{part}{0}% \z@{\linespacing\@plus\linespacing}{.5\linespacing}% {\normalfont\bfseries\if@RTL\raggedleft\else\raggedright\fi}} @@ -138,7 +143,7 @@ \@cleartopmattertags } %% -%% 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 |