diff options
author | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-08-03 13:12:51 +0000 |
---|---|---|
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | 2011-08-03 13:12:51 +0000 |
commit | 5bbe15e9a12a7f0e669dbca67001fcd0e0f2aa48 (patch) | |
tree | 8ac5dda3f30da6b7088d9fabc6c1e0bd2d4827ac /Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | |
parent | b4bf58caca096bc3377bc47cf94db66069316dcf (diff) |
xepersian v1.1.6
git-svn-id: svn://tug.org/texlive/trunk@23383 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 38 |
1 files changed, 23 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index b7a05ee4947..fbf147da50d 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -13,10 +13,9 @@ %% %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v1.1.0} -\def\xepersiancommit{commit 100} -\def\xepersiandate{2011/03/21} -\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space <\xepersiancommit> +\def\xepersianversion{v1.1.6} +\def\xepersiandate{2011/08/01} +\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} \RequirePackage{xepersian-persiancal} @@ -28,16 +27,13 @@ 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 -\xepersianversion, <\xepersiancommit>, \xepersiandate^^J +\xepersianversion, \xepersiandate^^J License: LaTeX Project Public License, version 1.3c or higher (your choice)^^J Home: http://bitbucket.org/vafa/xepersian^^J Location on CTAN: /macros/xetex/latex/xepersian} \typeout{\xepersianinfo} \edef\xepersian@everyjob{\the\everyjob} \everyjob{\xepersian@everyjob\typeout{\xepersianinfo}} -\if@developmentversion - \PackageWarningNoLine{xepersian}{Thanks for testing the development version of xepersian package. The development version may not work correctly or may not work at all. The development version is not recommended to be used for production purposes and should only be used for testing purposes. You are encouraged to use the stable version of xepersian package available on CTAN for production purposes} -\fi \def\prq{«} \def\plq{»} \def\xepersian@cmds@temp#1{% @@ -164,19 +160,26 @@ Location on CTAN: /macros/xetex/latex/xepersian} \def\today{\lr{\originaltoday}} \let\latintoday\today \def\today{\rl{\persiantoday}} +\def \@LTRmarginparreset {% + \reset@font + \latinfont + \normalsize + \@minipagetrue + \everypar{\@minipagefalse\everypar{}\beginL}% +} \DeclareRobustCommand\Latincite{% \@ifnextchar [{\@tempswatrue\@Latincitex}{\@tempswafalse\@Latincitex[]}} \def\@Latincitex[#1]#2{\leavevmode \let\@citea\@empty - \@cite{\@for\@citeb:=#2\do - {\@citea\def\@citea{\lr{,}\penalty\@m\ }% + \@cite{\lr{\@for\@citeb:=#2\do + {\@citea\def\@citea{,\penalty\@m\ }% \edef\@citeb{\expandafter\@firstofone\@citeb\@empty}% \if@filesw\immediate\write\@auxout{\string\citation{\@citeb}}\fi - \@ifundefined{b@\@citeb}{\hbox{\reset@font\bfseries\lr{?}}% + \@ifundefined{b@\@citeb}{\hbox{\reset@font\bfseries ?}% \G@refundefinedtrue \@latex@warning {Citation `\@citeb' on page \thepage \space undefined}}% - {\@cite@ofmt{\lr{\csname b@\@citeb\endcsname}}}}}{#1}} + {\@cite@ofmt{\csname b@\@citeb\endcsname}}}}}{#1}} \def\@outputpage{% \begingroup % the \endgroup is put in by \aftergroup \let \protect \noexpand @@ -268,7 +271,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \def\headtoname{\if@RTL به\else To\fi} \def\proofname{\if@RTL اثبات\else Proof\fi} \def\@harfi#1{\ifcase#1\or آ\or ب\or پ\or ت\or ث\or -ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or س\or ش\or ص\or ض\or ع\or غ\or +ج\or چ\or ح\or خ\or د\or ذ\or ر\or ز\or ژ\or س\or ش\or ص\or ض\or ط\or ظ\or ع\or غ\or ف\or ق\or ک\or گ\or ل\or م\or ن\or و\or ه\or ی\else\@ctrerr\fi} \def\harfi#1{\expandafter\@harfi\csname c@#1\endcsname} \def\@adadi#1{\ifcase#1 \or یک\or دو\or سه\or چهار\or پنج\or شش\or هفت\or هشت\or نه\or ده\or یازده\or دوازده\or سیزده\or چهارده\or پانزده\or شانزده\or هفده\or هجده\or نوزده\or بیست\else\@ctrerr\fi} @@ -333,6 +336,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \@ifpackageloaded{backref}{\input{backref-xepersian.def}}{} \@ifpackageloaded{flowfram}{\input{flowfram-xepersian.def}}{} \@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{} +\@ifpackageloaded{bidituftesidenote}{\input{bidituftesidenote-xepersian.def}}{} \@ifpackageloaded{bidicode}{\input{bidicode-xepersian.def}}{} \@ifpackageloaded{breqn}{\input{breqn-xepersian.def}}{} \@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{} @@ -340,6 +344,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{} \@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{} \@ifpackageloaded{multicol}{\input{multicol-xepersian.def}}{} +\@ifpackageloaded{natbib}{\input{natbib-xepersian.def}}{} \@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{} \@ifclassloaded{article}{\input{article-xepersian.def}}{} \@ifclassloaded{extarticle}{\input{extarticle-xepersian.def}}{} @@ -365,7 +370,10 @@ Location on CTAN: /macros/xetex/latex/xepersian} \@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{} \DeclareOption{Kashida}{\input{kashida-xepersian.def}} \DeclareOption{localise}{\input{localise-xepersian.def}} -\DeclareOption{extrafootnotefeatures}{\input{extrafootnotefeatures.def}} +\DeclareOption{extrafootnotefeatures}{% +\input{extrafootnotefeatures.def}% +\input{extrafootnotefeatures-xepersian.def}% +} \DeclareOption{quickindex}{% \ifwritexviii% \@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% @@ -379,7 +387,7 @@ Location on CTAN: /macros/xetex/latex/xepersian} \ExecuteOptions{localise} \ProcessOptions %% -%% Copyright © 2008–2011 Vafa Khalighi <vafakhlgh@gmail.com> +%% Copyright © 2008–2011 Vafa Khalighi <vafa018@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 |