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.sty126
1 files changed, 67 insertions, 59 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
index 20dab01b2c7..335793feedc 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
+++ b/Master/texmf-dist/tex/xelatex/xepersian/xepersian.sty
@@ -20,7 +20,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{10999}
+%% \CheckSum{10845}
%% \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
@@ -38,10 +38,10 @@
%% Right brace \} Tilde \~}
%%
\NeedsTeXFormat{LaTeX2e}
-\def\xepersian@version{25.8}
-\def\xepersiandate{2025/01/01}
-\def\xepersian@releasename{Mount Alvand}
-\def\xepersian@persian@@releasename{کوه الوند}
+\def\xepersian@version{26.1}
+\def\xepersiandate{2025/01/08}
+\def\xepersian@releasename{Persian Gate}
+\def\xepersian@persian@@releasename{دربند پارس}
\newcommand*{\xepersianreleasename}{\if@RTL\xepersian@persian@@releasename\else\xepersian@releasename\fi}
\ProvidesPackage{xepersian}[\xepersiandate\space v\xepersian@version\space (Release \xepersian@releasename)\space
Persian typesetting in XeLaTeX]
@@ -86,16 +86,16 @@ Persian typesetting in XeLaTeX]
\keys_define:nn { xepersian }
{
Kashida .choice: ,
- Kashida / on .code:n = \AtEndOfPackage{\input{kashida-xepersian.def}} ,
+ Kashida / on .code:n = \AtEndOfPackage{\input{kashida-xetex-xepersian.def}} ,
Kashida / off .code:n = \relax ,
Kashida .default:n = on
}
\keys_define:nn { xepersian }
{
- localise .choice: ,
- localise / on .code:n = \AtEndOfPackage{\input{localise-xepersian.def}} ,
- localise / off .code:n = \relax ,
- localise .default:n = on
+ localize .choice: ,
+ localize / on .code:n = \AtEndOfPackage{\input{localize-xetex-xepersian.def}} ,
+ localize / off .code:n = \relax ,
+ localize .default:n = on
}
\cs_new_protected:Npn \__xepersian_quickindex_variant:n #1
{
@@ -1044,7 +1044,7 @@ Persian typesetting in XeLaTeX]
\newcommand*{\@xepersian@pdfcustomproperties}{%
This is the xepersian package, Version \xepersian@version\space (Release \xepersian@releasename),
- Released January 1, 2025.
+ Released January 8, 2025.
}
\newcommand\twocolumnstableofcontents{%
@@ -1358,54 +1358,62 @@ number is 999,999,999.}%
\PackageError{xepersian}{You have not specified any font\MessageBreak
for the main Persian text}{Use `\settextfont' to load a font.}%
}{}}
-\@ifdefinitionfileloaded{loadingorder-xetex-bidi}{\input{loadingorder-xepersian.def}}{}
-\@ifdefinitionfileloaded{footnote-xetex-bidi}{\input{footnote-xepersian.def}}{}
-\@ifpackageloaded{appendix}{\input{appendix-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{beamerbasetranslator}{\input{beamerbasetranslator-xepersian.def}}{}
-\@ifpackageloaded{fancyref}{\input{fancyref-xepersian.def}}{}
-\@ifpackageloaded{bidituftesidenote}{\input{bidituftesidenote-xepersian.def}}{}
-\@ifpackageloaded{breqn}{\input{breqn-xepersian.def}}{}
-\@ifpackageloaded{enumerate}{\input{enumerate-xepersian.def}}{}
-\@ifpackageloaded{enumitem}{\input{enumitem-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}}{}
-\@ifpackageloaded{natbib}{\input{natbib-xepersian.def}}{}
-\@ifpackageloaded{soul}{\input{soul-xepersian.def}}{}
-\@ifpackageloaded{tkz-linknodes}{\input{tkz-linknodes-xepersian.def}}{}
-\@ifpackageloaded{tocloft}{\@ifclassloaded{memoir}{}{\input{tocloft-xepersian.def}}}{}
-\@ifpackageloaded{url}{\input{url-xepersian.def}}{}
-\@ifpackageloaded{varioref}{\input{varioref-xepersian.def}}{}
-\@ifclassloaded{article}{\input{article-xepersian.def}}{}
-\@ifclassloaded{extarticle}{\input{extarticle-xepersian.def}}{}
-\@ifclassloaded{artikel1}{\input{artikel1-xepersian.def}}{}
-\@ifclassloaded{artikel2}{\input{artikel2-xepersian.def}}{}
-\@ifclassloaded{artikel3}{\input{artikel3-xepersian.def}}{}
-\@ifclassloaded{amsart}{\input{amsart-xepersian.def}}{}
-\@ifclassloaded{beamer}{\input{beamer-xepersian.def}}{}
-\@ifclassloaded{bidimoderncv}{\input{bidimoderncv-xepersian.def}}{}
-\@ifclassloaded{report}{\input{report-xepersian.def}}{}
-\@ifclassloaded{extreport}{\input{extreport-xepersian.def}}{}
-\@ifclassloaded{rapport1}{\input{rapport1-xepersian.def}}{}
-\@ifclassloaded{rapport3}{\input{rapport3-xepersian.def}}{}
-\@ifclassloaded{scrartcl}{\input{scrartcl-xepersian.def}}{}
-\@ifclassloaded{scrbook}{\input{scrbook-xepersian.def}}{}
-\@ifclassloaded{scrreprt}{\input{scrreprt-xepersian.def}}{}
-\@ifclassloaded{amsbook}{\input{amsbook-xepersian.def}}{}
-\@ifclassloaded{boek3}{\input{boek3-xepersian.def}}{}
-\@ifclassloaded{boek}{\input{boek-xepersian.def}}{}
-\@ifclassloaded{bookest}{\input{bookest-xepersian.def}}{}
-\@ifclassloaded{extbook}{\input{extbook-xepersian.def}}{}
-\@ifclassloaded{book}{\input{book-xepersian.def}}{}
-\@ifclassloaded{refrep}{\input{refrep-xepersian.def}}{}
-\@ifclassloaded{memoir}{\input{memoir-xepersian.def}}{}
-\@ifclassloaded{imsproc}{\input{imsproc-xepersian.def}}{}
-\@ifdefinitionfileloaded{extrafootnotefeatures-xetex-bidi}{\input{extrafootnotefeatures-xepersian.def}}{}
+
+\ApplyPatchToFiles{%
+ footnote-xetex-bidi, %
+ extrafootnotefeatures-xetex-bidi %
+}[def][xepersian]
+
+\ApplyPatchToClasses{%
+ article, %
+ amsart, %
+ amsbook, %
+ artikel1, %
+ artikel2, %
+ artikel3, %
+ beamer, %
+ bidimoderncv, %
+ boek, %
+ boek3, %
+ book, %
+ bookest, %
+ extbook, %
+ extarticle, %
+ extreport, %
+ imsproc, %
+ memoir, %
+ rapport1, %
+ rapport3, %
+ refrep, %
+ report, %
+ scrartcl, %
+ scrbook, %
+ scrreprt %
+}[xepersian]
+
+\ApplyPatchToPackages{%
+ algorithm, %
+ algorithmic, %
+ appendix, %
+ backref, %
+ beamerbasetranslator, %
+ bidituftesidenote, %
+ breqn, %
+ enumerate, %
+ enumitem, %
+ fancyref, %
+ framed, %
+ glossaries, %
+ hyperref, %
+ listings, %
+ minitoc, %
+ natbib, %
+ soul, %
+ tkz-linknodes, %
+ tocloft, %
+ url, %
+ varioref %
+}[xepersian]
\newtoks\xepersian@toks
\def\xepersian@tempa#1{%