summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty29
1 files changed, 25 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index 4f2735a8c5a..7df4b88763c 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -17,7 +17,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{9935}
+%% \CheckSum{9972}
%% \CharacterTable
%% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
%% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
@@ -35,8 +35,8 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersianversion{v13.3}
-\def\xepersiandate{2013/09/29}
+\def\xepersianversion{v13.4}
+\def\xepersiandate{2013/10/14}
\ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space
Persian typesetting in XeLaTeX]
\RequirePackage{fontspec}
@@ -626,11 +626,32 @@ number is 999,999,999.}%
\DeclareOption{localise}{\input{localise-xepersian.def}}
\DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue}
\DeclareOption{quickindex}{%
+\PackageWarning{xepersian}{Obsolete option}%
\ifwritexviii%
\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{%
\renewcommand\printindex{\newpage%
\immediate\closeout\@indexfile
-\immediate\write18{xindy -L persian -C utf8 -M texindy -M page-ranges \jobname.idx}
+\immediate\write18{xindy -L persian-variant2 -C utf8 -M texindy -M page-ranges \jobname.idx}
+\@input@{\jobname.ind}}}%
+\else
+\PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{}
+\fi}
+\DeclareOption{quickindex-variant1}{%
+\ifwritexviii%
+\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{%
+\renewcommand\printindex{\newpage%
+\immediate\closeout\@indexfile
+\immediate\write18{xindy -L persian-variant1 -C utf8 -M texindy -M page-ranges \jobname.idx}
+\@input@{\jobname.ind}}}%
+\else
+\PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{}
+\fi}
+\DeclareOption{quickindex-variant2}{%
+\ifwritexviii%
+\@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{%
+\renewcommand\printindex{\newpage%
+\immediate\closeout\@indexfile
+\immediate\write18{xindy -L persian-variant2 -C utf8 -M texindy -M page-ranges \jobname.idx}
\@input@{\jobname.ind}}}%
\else
\PackageError{xepersian}{“shell escape” (or “write18”) is not enabled. You need to run “xelatex --shell-escape” on your TeX document for this feature to work}{}