diff options
author | Karl Berry <karl@freefriends.org> | 2011-10-06 23:17:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-10-06 23:17:37 +0000 |
commit | 622aee50689ed070e4e2975f25a702fa60c56ec4 (patch) | |
tree | de807e393892e908385124005312610482cb4979 /Master/texmf-dist/source/xelatex | |
parent | a219078a0834b9cc06e7badbdbee247f0a6716a3 (diff) |
xepersian (6oct11)
git-svn-id: svn://tug.org/texlive/trunk@24227 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/xelatex')
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx | 721 | ||||
-rw-r--r-- | Master/texmf-dist/source/xelatex/xepersian/xepersian.ins | 12 |
2 files changed, 30 insertions, 703 deletions
diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx index 5fe0bc0fff3..170b628e59e 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.dtx @@ -5,10 +5,10 @@ %<*readme> _________________ The XePersian package -v1.2.4 +v1.2.5 XePersian is a package written for XeLaTeX that allows users to typeset -Persian easily. The current version is 1.2.4 and it will be developed to +Persian easily. The current version is 1.2.5 and it will be developed to meet the needs of Persian typesetting properly. The XePersian package is independent of any operating system, meaning it @@ -23,17 +23,17 @@ in the documentation. To get help, please explore http://forum.parsilatex.com ______________ -VAFA KHALIGHI +Vafa Khalighi vafaklg@gmail.com -Copyright © 2008–2011 +Copyright © 2008–2012 Distributed under the LaTeX Project Public License It may be distributed and/or modified under the LaTeX Project Public License, version 1.3c or higher (your choice). The latest version of this license is at: http://www.latex-project.org/lppl.txt This work is “author-maintained” (as per LPPL maintenance status) -by VAFA KHALIGHI. +by Vafa Khalighi. %</readme> %<*internal> \fi @@ -46,7 +46,7 @@ by VAFA KHALIGHI. \preamble ______________________________________ - Copyright © 2008–2011 VAFA KHALIGHI + Copyright © 2008–2012 Vafa Khalighi License information appended. @@ -54,14 +54,14 @@ by VAFA KHALIGHI. \endpreamble \postamble -Copyright © 2008–2011 VAFA KHALIGHI <vafaklg@gmail.com> +Copyright © 2008–2012 Vafa Khalighi <vafaklg@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 this license is at: http://www.latex-project.org/lppl.txt This work is “author-maintained” (as per LPPL maintenance status) -by VAFA KHALIGHI. +by Vafa Khalighi. @@ -155,7 +155,7 @@ by VAFA KHALIGHI. \usepackage{bidicode} \usepackage[numbered]{hypdoc} \definecolor{myred}{rgb}{0.65,0.04,0.07} -\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={VAFA KHALIGHI <vafaklg@gmail.com>}} +\hypersetup{pdftitle={The XePersian Package (Persian for \LaTeXe{} over XeTeX)},pdfauthor={Vafa Khalighi <vafaklg@gmail.com>}} \usepackage{bidi} \setlength\columnseprule{.4pt} \newfontfamily\ParsiFont[Script=Arabic]{Iranian Sans} @@ -205,9 +205,9 @@ by VAFA KHALIGHI. % \makeatletter % \title{The \textsf{\XePersian} Package\\[5pt] % Persian for \LaTeXe{} over \XeTeX} -% \author{VAFA KHALIGHI\\ +% \author{Vafa Khalighi\\ % \url{vafaklg@gmail.com}} -% \date{\today\qquad Version 1.2.4} +% \date{\today\qquad Version 1.2.5} %\maketitle %\tableofcontents %\section{Introduction} @@ -226,8 +226,8 @@ by VAFA KHALIGHI. %xepersian package (Persian for LaTeX over XeTeX) %Description: The package supports Persian %typesetting, using fonts provided in the distribution. -%Copyright © 2008-2011 VAFA KHALIGHI -%v1.2.4, 2011/12/01 +%Copyright © 2008-2012 Vafa Khalighi +%v1.2.5, 2012/01/01 %License: LaTeX Project Public License, version 1.3c or higher (your choice) %Location on CTAN: /macros/xetex/latex/xepersian %\end{lstlisting} @@ -3661,682 +3661,10 @@ by VAFA KHALIGHI. %\fi % \subsection{\textsf{extrafootnotefeatures-xepersian.def}} % \begin{macrocode} -\ProvidesFile{extrafootnotefeatures-xepersian.def}[2011/08/01 v0.1 footnote macros for extrafootnotefeatures option of xepersian package] -\renewcommand{\@twocolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@twocolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@twocolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptwocolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptwocolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptwocolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@twocolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@threecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@threecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@threecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpthreecolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpthreecolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpthreecolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@threecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fourcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fourcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fourcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfourcolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfourcolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfourcolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fourcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fivecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fivecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@fivecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfivecolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfivecolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpfivecolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@fivecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sixcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sixcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sixcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsixcolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsixcolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsixcolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sixcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sevencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sevencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@sevencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsevencolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsevencolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpsevencolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@sevencolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@eightcolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@eightcolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@eightcolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpeightcolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpeightcolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpeightcolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@eightcolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@ninecolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@ninecolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@ninecolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpninecolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpninecolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mpninecolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@ninecolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@tencolfootnotetext}[1]{\insert\footinsv@r{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@tencolLTRfootnotetext}[1]{\insert\footinsv@r{\if@RTLcolumnfootnotes\beginL\fi\@RTLfalse% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@tencolRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLtrue% - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptencolfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\if@RTL@footnote\@RTLtrue\else\@RTLfalse\fi% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\if@RTL@footnote\else\latinfont\fi#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptencolLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \if@RTLcolumnfootnotes\beginL\fi - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\latinfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@mptencolRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLtrue% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \color@begingroup - \@tencolfootfmt{\persianfont#1}% - \color@endgroup}% - \m@mmf@prepare} -\renewcommand{\@parafootnotetext}[1]{\insert\footinsv@r{\@RTLfalse - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\if@RTL@footnote\beginR\else\beginL\latinfont\fi#1\if@RTL@footnote\endR\else\endL\fi}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} -\renewcommand{\@paraLTRfootnotetext}[1]{\insert\footinsv@r{\@RTLfalse - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\beginL\latinfont#1\endL}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} -\renewcommand{\@paraRTLfootnotetext}[1]{\insert\footinsv@r{\@RTLfalse - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \@preamfntext - \protected@edef\@currentlabel{% - \csname p@footnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\beginR\persianfont#1\endR}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} -\renewcommand{\@mpparafootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\if@RTL@footnote\beginR\else\beginL\latinfont\fi#1\if@RTL@footnote\endR\else\endL\fi}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} -\renewcommand{\@mpparaLTRfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\beginL\latinfont#1\endL}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} -\renewcommand{\@mpparaRTLfootnotetext}[1]{% - \global\setbox\@mpfootinsv@r\vbox{\@RTLfalse% - \unvbox\@mpfootinsv@r - \def\baselinestretch{\m@m@footnote@spacing}% - \reset@font\foottextfont - \hsize\columnwidth \@parboxrestore - \protected@edef\@currentlabel{% - \csname p@mpfootnote\endcsname\@thefnmark}% - \setbox0=\vbox{\hsize=\maxdimen - \color@begingroup - \noindent \@parafootfmt{\beginR\persianfont#1\endR}% - \color@endgroup}% - \m@mungebox}\m@mmf@prepare} +\ProvidesFile{extrafootnotefeatures-xepersian.def}[2012/01/01 v0.2 footnote macros for extrafootnotefeatures option of xepersian package] +\renewcommand{\foottextfont}{\footnotesize\if@RTL@footnote\else\latinfont\fi} +\renewcommand{\LTRfoottextfont}{\footnotesize\latinfont} +\renewcommand{\RTLfoottextfont}{\footnotesize\persianfont} % \end{macrocode} % \iffalse %</extrafootnotefeatures-xepersian.def> @@ -5686,20 +5014,19 @@ U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET % \subsection{\textsf{xepersian.sty}} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.2.4} -\def\xepersiandate{2011/12/01} +\def\xepersianversion{v1.2.5} +\def\xepersiandate{2012/01/01} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} \RequirePackage{xepersian-persiancal} \RequirePackage{xepersian-mathsdigitspec} -\RequirePackage{etoolbox} \RequirePackage[RTLdocument]{bidi} \edef\xepersianinfo{% xepersian package (Persian for LaTeX over XeTeX)^^J Description: The package supports Persian^^J typesetting, using fonts provided in the distribution.^^J -Copyright © 2008–2011 VAFA KHALIGHI^^J +Copyright © 2008–2012 Vafa Khalighi^^J \xepersianversion, \xepersiandate^^J License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J Location on CTAN: /macros/xetex/latex/xepersian} @@ -6170,8 +5497,8 @@ number is 999,999,999.}% \providecommand*{\xpg@warning}[1]{% \PackageWarning{XePersian}% {#1}} -\ifcsdef{abjad}{}{% -\def\abjad#1{% +\if@bidi@csdef{abjadnumeral}{}{% +\def\abjadnumeral#1{% \ifnum#1>1999 \xpg@warning{Illegal value (#1) for abjad numeral} {#1} \else \ifnum#1<\z@\space\xpg@warning{Illegal value (#1) for abjad numeral}% @@ -6210,8 +5537,8 @@ number is 999,999,999.}% \let\@latinalph\@alph% \let\@latinAlph\@Alph% \def\PersianAlphs{% - \let\@alph\abjad% - \let\@Alph\abjad% + \let\@alph\abjadnumeral% + \let\@Alph\abjadnumeral% } \def\LatinAlphs{% \let\@alph\@latinalph% diff --git a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins index 846c5b1a205..cd423083a4b 100644 --- a/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins +++ b/Master/texmf-dist/source/xelatex/xepersian/xepersian.ins @@ -7,7 +7,7 @@ %% xepersian.dtx (with options: `batchfile') %% %% ______________________________________ -%% Copyright © 2008–2011 VAFA KHALIGHI +%% Copyright © 2008–2012 Vafa Khalighi %% %% License information appended. %% @@ -18,21 +18,21 @@ \preamble ______________________________________ - Copyright © 2008–2011 VAFA KHALIGHI + Copyright © 2008–2012 Vafa Khalighi License information appended. \endpreamble \postamble -Copyright © 2008–2011 VAFA KHALIGHI <vafaklg@gmail.com> +Copyright © 2008–2012 Vafa Khalighi <vafaklg@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 this license is at: http://www.latex-project.org/lppl.txt This work is “author-maintained” (as per LPPL maintenance status) -by VAFA KHALIGHI. +by Vafa Khalighi. \endpostamble \askforoverwritefalse @@ -97,14 +97,14 @@ by VAFA KHALIGHI. \generate{\file{xepersian-persiancal.sty}{\from{\jobname.dtx}{xepersian-persiancal.sty}}} \endbatchfile %% -%% Copyright © 2008–2011 VAFA KHALIGHI <vafaklg@gmail.com> +%% Copyright © 2008–2012 Vafa Khalighi <vafaklg@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 %% this license is at: http://www.latex-project.org/lppl.txt %% %% This work is “author-maintained” (as per LPPL maintenance status) -%% by VAFA KHALIGHI. +%% by Vafa Khalighi. %% %% %% |