summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def')
-rw-r--r--Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def17
1 files changed, 7 insertions, 10 deletions
diff --git a/Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def b/Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def
index 7aaf3e7d94c..a5e3d744ced 100644
--- a/Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def
+++ b/Master/texmf-dist/tex/xelatex/bidi/hyperref-bidi.def
@@ -1,17 +1,14 @@
%%
%% This is file `hyperref-bidi.def',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% bidi.dtx (with options: `hyperref-bidi.def')
+
%%
%% __________________________________
-%% Copyright © 2009 Vafa Khalighi
+%% Copyright © 2009-2010 Vafa Khalighi
%%
%% License information appended.
%%
%%
+\ProvidesFile{hyperref-bidi.def}[2010/03/01 v0.2 adaptations for hyperref package]
\AtBeginDocument{%
\def\contentsline#1#2#3#4{%
\ifx\\#4\\%
@@ -228,18 +225,18 @@
\renewcommand\url[1]{\beginL\origin@url{#1}\endL}%
\def\hyper@natlinkstart#1{%
\Hy@backout{#1}%
- \beginL\hyper@linkstart{cite}{cite.#1}%
+ \beginL\hyper@linkstart{cite}{cite.#1}\if@RTL\beginR\fi%
\def\hyper@nat@current{#1}%
}
\def\hyper@natlinkend{%
- \hyper@linkend\endL
+ \if@RTL\endR\fi\hyper@linkend\endL
}
\def\hyper@natlinkbreak#1#2{%
- \hyper@linkend\endL#1\beginL\hyper@linkstart{cite}{cite.#2}%
+ \if@RTL\endR\fi\hyper@linkend\endL#1\beginL\hyper@linkstart{cite}{cite.#2}\if@RTL\beginR\fi%
}%
}
%%
-%% Copyright © 2009 by Vafa Khalighi <vafa@users.berlios.de>
+%% Copyright © 2009-2010 by Vafa Khalighi <vafa@users.berlios.de>
%%
%% Distributable under the LaTeX Project Public License,
%% version 1.3c or higher (your choice). The latest version of