summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/hyperref/nohyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/hyperref/nohyperref.sty11
1 files changed, 6 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
index 3fbfa8858d3..b16926a8efb 100644
--- a/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
+++ b/Master/texmf-dist/tex/latex/hyperref/nohyperref.sty
@@ -30,8 +30,9 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{nohyperref}
- [2010/01/25 v6.80d
+ [2010/02/08 v6.80e
Dummy hyperref (SR)]
+\RequirePackage{letltxmacro}[2008/06/13]
\let\hyper@@anchor\@gobble
\def\hyper@link#1#2#3{#3}%
\let\hyper@anchorstart\@gobble
@@ -61,12 +62,12 @@
}
\long\def\@gobbleopt[#1]{}
\let\hyperpage\@empty
-\let\NoHy@OrgRef\ref
-\def\ref{%
+\LetLtxMacro\NoHy@OrgRef\ref
+\DeclareRobustCommand*{\ref}{%
\@ifstar\NoHy@OrgRef\NoHy@OrgRef
}
-\let\NoHy@OrgPageRef\pageref
-\def\pageref{%
+\LetLtxMacro\NoHy@OrgPageRef\pageref
+\DeclareRobustCommand*{\pageref}{%
\@ifstar\NoHy@OrgPageRef\NoHy@OrgPageRef
}
\endinput