diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-10 22:10:55 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-10 22:10:55 +0000 |
commit | 966f3ce66328982f136ff1744dee70000acccf01 (patch) | |
tree | 72d1cd01a91bc03f1489ae7d771c7039b5b6df72 /Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty | |
parent | 197c71f5ceb7bb67f1aeeff685c1e22657133929 (diff) |
lwarp
git-svn-id: svn://tug.org/texlive/trunk@52729 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.sty | 130 |
1 files changed, 53 insertions, 77 deletions
diff --git a/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty b/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty index 6b959804450..b5bd275e098 100644 --- a/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty +++ b/Master/texmf-dist/tex/latex/lwarp/lwarp-hyperref.sty @@ -33,122 +33,98 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak} \newcommand*{\hyperbaseurl}[1]{} \NewDocumentCommand{\LWR@hyperimageb}{m +m}{% -\LWR@ensuredoingapar% -\def\LWR@templink{#1}% -\@onelevel@sanitize\LWR@templink% -\LWR@htmltag{img src="\LWR@templink" alt="#2" class="hyperimage"}% -\LWR@ensuredoingapar% -\endgroup% + \LWR@ensuredoingapar% + \def\LWR@templink{#1}% + \@onelevel@sanitize\LWR@templink% + \LWR@htmltag{img src="\LWR@templink" alt="#2" class="hyperimage"}% + \LWR@ensuredoingapar% + \endgroup% } \newrobustcmd*{\hyperimage}{% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hyperimageb% + \begingroup% + \LWR@linkcatcodes% + \LWR@hyperimageb% } \NewDocumentCommand{\LWR@hyperdefb}{m m +m}{% -\LWR@ensuredoingapar% -\LWR@sublabel{#1.#2}% -#3% -\endgroup% + \LWR@ensuredoingapar% + \LWR@sublabel{#1.#2}% + #3% + \endgroup% } \newcommand*{\hyperdef}{% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hyperdefb% + \begingroup% + \LWR@linkcatcodes% + \LWR@hyperdefb% } \newcommand{\LWR@hyperreffinish}[1]{% -\begingroup% -\RenewDocumentCommand{\ref}{}{\LWR@ref@ignorestar}% -#1% -\endgroup% -\LWR@htmltag{/a}% + \begingroup% + \RenewDocumentCommand{\ref}{}{\LWR@ref@ignorestar}% + #1% + \endgroup% + \LWR@htmltag{/a}% } \newcommand*{\LWR@hyperrefbb}[3]{% -\LWR@htmltag{% - a href="% - \detokenize\expandafter{#1}\LWR@hashmark% - \detokenize\expandafter{#2}.\detokenize\expandafter{#3}% - "% - \LWR@addlinktitle% -}% -\endgroup% -\LWR@hyperreffinish% + \LWR@htmltag{% + a href="% + \detokenize\expandafter{#1}\LWR@hashmark% + \detokenize\expandafter{#2}.\detokenize\expandafter{#3}% + "% + \LWR@addlinktitle% + }% + \endgroup% + \LWR@hyperreffinish% } \newrobustcmd*{\LWR@hyperrefb}{% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hyperrefbb% + \begingroup% + \LWR@linkcatcodes% + \LWR@hyperrefbb% } \NewDocumentCommand{\LWR@hyperrefcb}{O{label}}{% -\LWR@startref{#1}% -\endgroup% -\LWR@hyperreffinish% + \LWR@startref{#1}% + \endgroup% + \LWR@hyperreffinish% } \newcommand*{\LWR@hyperrefc}{% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hyperrefcb% + \begingroup% + \LWR@linkcatcodes% + \LWR@hyperrefcb% } \DeclareRobustCommand*{\hyperref}{% -\LWR@ensuredoingapar% -\@ifnextchar[\LWR@hyperrefc\LWR@hyperrefb% + \LWR@ensuredoingapar% + \@ifnextchar[\LWR@hyperrefc\LWR@hyperrefb% } \NewDocumentCommand{\LWR@hypertargetb}{m +m}{% -\label{LWR-ht-#1}% -#2% -\endgroup% + \label{LWR-ht-#1}% + #2% + \endgroup% } \newcommand*{\hypertarget}{% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hypertargetb% + \begingroup% + \LWR@linkcatcodes% + \LWR@hypertargetb% } \DeclareDocumentCommand{\LWR@hyperlinkb}{m}{% -\LWR@hyperrefcb[LWR-ht-#1]% + \LWR@hyperrefcb[LWR-ht-#1]% } \DeclareDocumentCommand{\hyperlink}{}{% -\LWR@ensuredoingapar% -\begingroup% -\catcode`\#=12% -\catcode`\%=12% -\catcode`\&=12% -\catcode`\~=12% -\catcode`\_=12% -\LWR@hyperlinkb% + \LWR@ensuredoingapar% + \begingroup% + \LWR@linkcatcodes% + \LWR@hyperlinkb% } \NewDocumentCommand{\autoref}{s m}{% @@ -171,7 +147,7 @@ do not attempt to patch lwarp's version of `hyperref'.)\MessageBreak} \newcommand{\texorpdfstring}[2]{#1} \def\hypercalcbp#1{% -\strip@pt\dimexpr 0.99626401\dimexpr(#1)\relax\relax + \strip@pt\dimexpr 0.99626401\dimexpr(#1)\relax\relax }% \newcommand{\Acrobatmenu}[2]{} |