summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-05 22:17:17 +0000
committerKarl Berry <karl@freefriends.org>2022-04-05 22:17:17 +0000
commit980b7410cdd2e14152f006fdc1baa5041263b0b9 (patch)
treefa02a8419c91b9a5d51a3df9c5b1485c48f25364 /Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
parent674027830fb541fdb42c86773df06bf39316e75f (diff)
lwarp (22mar22)
git-svn-id: svn://tug.org/texlive/trunk@62952 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty')
-rw-r--r--Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty14
1 files changed, 12 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
index c0c8df88dbd..50865b64bb3 100644
--- a/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
+++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty
@@ -317,7 +317,7 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
\newcommand{\LWR@hyperreffinish}[1]{%
\begingroup%
\RenewDocumentCommand{\ref}{s m}{\LWR@print@ref{##2}}%
- #1%
+ #1%
\endgroup%
\LWR@htmltag{/a}%
}
@@ -340,7 +340,6 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
\LWR@hyperrefbb%
}
-
\NewDocumentCommand{\LWR@hyperrefcb}{O{label}}{%
\LWR@startref{#1}%
\endgroup%
@@ -384,6 +383,17 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak}
\LWR@hyperlinkb%
}
+\newcommand{\LWR@nullify@hyperrefb}[2][]{}
+
+\newcommand*{\LWR@nullify@hyperref}{%
+ \@ifnextchar[\LWR@nullify@hyperrefb\@fourthoffour%
+}
+\appto\LWR@restoreorigformatting{%
+ \LetLtxMacro\hyperdef\@thirdofthree
+ \LetLtxMacro\hyperlink\@secondoftwo%
+ \LetLtxMacro\hyperref\LWR@nullify@hyperref%
+}
+
\NewDocumentCommand{\autoref}{s m}{%
\IfBooleanTF{#1}{\ref{#2}}{\cref{#2}}%
}