diff options
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty')
-rw-r--r-- | Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty index 8804a31712a..e7463a04ef4 100644 --- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty +++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty @@ -1,5 +1,10 @@ %% -%% This is file `xepersian.sty'. +%% This is file `xepersian.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% xepersian.dtx (with options: `xepersian.sty') %% %% ______________________________________ %% Copyright © 2008–2013 Vafa Khalighi @@ -9,8 +14,8 @@ %% \NeedsTeXFormat{LaTeX2e} -\def\xepersianversion{v12.9} -\def\xepersiandate{2013/09/06} +\def\xepersianversion{v13} +\def\xepersiandate{2013/09/22} \ProvidesPackage{xepersian}[\xepersiandate\space \xepersianversion\space Persian typesetting in XeLaTeX] \RequirePackage{fontspec} @@ -173,6 +178,8 @@ Location on CTAN: /macros/xetex/latex/xepersian} \def\endlatin{\endLTR} \def\persian{\RTL\PersianAlphs\@RTL@footnotetrue\setpersianfont} \def\endpersian{\endRTL} +\newenvironment{latinitems}{\begin{LTRitems}\LatinAlphs\@Latintrue\@RTL@footnotefalse\resetlatinfont}{\end{LTRitems}} +\newenvironment{parsiitems}{\begin{RTLitems}\PersianAlphs\@RTL@footnotetrue\setpersianfont}{\end{RTLitems}} \let\originaltoday=\today \def\latintoday{\lr{\originaltoday}} \def\today{\rl{\persiantoday}} @@ -541,17 +548,17 @@ number is 999,999,999.}% \let\@Alph\@latinAlph% } \PersianAlphs -\@ifdefinitionfileloaded{loadingorder-bidi}{\input{loadingorder-bidi-xepersian.def}}{} +\@ifdefinitionfileloaded{loadingorder-xetex-bidi}{\input{loadingorder-xepersian.def}}{} \@ifpackageloaded{listings}{\input{listings-xepersian.def}}{} \@ifpackageloaded{algorithmic}{\input{algorithmic-xepersian.def}}{} \@ifpackageloaded{algorithm}{\input{algorithm-xepersian.def}}{} \@ifpackageloaded{backref}{\input{backref-xepersian.def}}{} \@ifpackageloaded{flowfram}{\input{flowfram-xepersian.def}}{} -\@ifpackageloaded{bidi}{\input{footnote-bidi-xepersian.def}}{} +\@ifpackageloaded{bidi}{\input{footnote-xepersian.def}}{} \@ifpackageloaded{bidituftesidenote}{\input{bidituftesidenote-xepersian.def}}{} \@ifpackageloaded{breqn}{\input{breqn-xepersian.def}}{} \@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{} -\@ifpackageloaded{framed}{\input{framed-bidi-xepersian.def}}{} +\@ifpackageloaded{framed}{\input{framed-xepersian.def}}{} \@ifpackageloaded{glossaries}{\input{glossaries-xepersian.def}}{} \@ifpackageloaded{hyperref}{\input{hyperref-xepersian.def}}{} \@ifpackageloaded{minitoc}{\input{minitoc-xepersian.def}}{} @@ -583,10 +590,7 @@ number is 999,999,999.}% \@ifclassloaded{imsproc}{\input{imsproc-xepersian.def}}{} \DeclareOption{Kashida}{\input{kashida-xepersian.def}} \DeclareOption{localise}{\input{localise-xepersian.def}} -\DeclareOption{extrafootnotefeatures}{% -\input{extrafootnotefeatures.def}% -\input{extrafootnotefeatures-xepersian.def}% -} +\DeclareOption{extrafootnotefeatures}{\@extrafootnotefeaturestrue} \DeclareOption{quickindex}{% \ifwritexviii% \@ifclassloaded{memoir}{\PackageError{xepersian}{This feature does not yet work with the memoir class}{}}{% @@ -599,8 +603,13 @@ number is 999,999,999.}% \fi} \ExecuteOptions{localise} \ProcessOptions + +\if@extrafootnotefeatures + \input{extrafootnotefeatures-xetex-bidi.def} + \input{extrafootnotefeatures-xepersian.def} +\fi %% -%% Copyright © 2008–2013 Vafa Khalighi <vafakh@me.com> +%% Copyright © 2008–2013 Vafa Khalighi <persian-tex@tug.org> %% %% It may be distributed and/or modified under the LaTeX Project Public License, %% version 1.3c or higher (your choice). The latest version of |