summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def26
1 files changed, 14 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
index 2dcaa8dbf67..abd1581e8ed 100644
--- a/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
+++ b/Master/texmf-dist/tex/xelatex/xepersian/hyperref-xepersian.def
@@ -20,7 +20,7 @@
%% by Vafa Khalighi.
%%
%%
-%% \CheckSum{11153}
+%% \CheckSum{11155}
%% \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
@@ -37,7 +37,7 @@
%% Grave accent \` Left brace \{ Vertical bar \|
%% Right brace \} Tilde \~}
%%
-\ProvidesFile{hyperref-xepersian.def}[2015/02/02 v0.6 bilingual captions for hyperref package]
+\ProvidesFile{hyperref-xepersian.def}[2022/06/10 v0.7 xepersian adaptations for hyperref package]
\def\equationautorefname{\if@RTL معادله\else Equation\fi}%
\def\footnoteautorefname{\if@RTL زیرنویس\else footnote\fi}%
\def\itemautorefname{\if@RTL فقره\else item\fi}%
@@ -54,16 +54,18 @@
\def\FancyVerbLineautorefname{\if@RTL سطر\else line\fi}%
\def\theoremautorefname{\if@RTL قضیه\else Theorem\fi}%
\def\pageautorefname{\if@RTL صفحه\else page\fi}%
-\AtBeginDocument{%
-\let\HyOrg@appendix\appendix
-\def\appendix{%
- \ltx@IfUndefined{chapter}%
- {\gdef\theHsection{\Alph{section}}}%
- {\gdef\theHchapter{\Alph{chapter}}}%
- \xdef\Hy@chapapp{\Hy@appendixstring}%
- \HyOrg@appendix
-}
-}
+\ifHy@implicit
+ \AtBeginDocument{%
+ \let\HyOrg@appendix\appendix
+ \def\appendix{%
+ \ltx@IfUndefined{chapter}%
+ {\gdef\theHsection{\Alph{section}}}%
+ {\gdef\theHchapter{\Alph{chapter}}}%
+ \xdef\Hy@chapapp{\Hy@appendixstring}%
+ \HyOrg@appendix
+ }%
+ }%
+\fi
\pdfstringdefDisableCommands{%
\let\lr\@firstofone
\let\rl\@firstofone