summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/hvqrurl/latex/hvqrurl.sty')
-rw-r--r--macros/latex/contrib/hvqrurl/latex/hvqrurl.sty13
1 files changed, 8 insertions, 5 deletions
diff --git a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
index 36f90a2638..af29f1a446 100644
--- a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
+++ b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.sty 870 2024-02-03 20:38:44Z herbert $
+%% $Id: hvqrurl.sty 872 2024-02-06 16:11:47Z herbert $
%%
%% This file is distributed under the terms of the LaTeX Project Public
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
@@ -7,7 +7,7 @@
% Copyright 2019,21,23,24 Herbert Voss hvoss@tug.org
%%
\ProvidesPackage{hvqrurl}[%
- 2024/02/03 v.0.06 (Herbert Voss) Supports qr images into the margin (hv)]
+ 2024/02/06 v.0.07 (Herbert Voss) Supports qr images into the margin (hv)]
%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{url}
@@ -51,12 +51,15 @@
\expandafter\qrset\expandafter{\qr@url@qrlink,height=\qr@url@qrheight,level=\qr@url@qrlevel}%
\ifhv@qrreverse\reversemarginpar\fi
\if@tempswa
- \ifx\@empty\qr@url@linktext % alternative link text
+ \ifx\@empty\qr@url@linktext % alternative link text?
\edef\hv@foo{\detokenize\expandafter{#2}}%
\url{\hv@foo}%
\else
- \edef\hv@foo{\detokenize\expandafter{\qr@url@linktext}}%
- \href{#2}{\hv@foo}%
+ % \href[options]{URL}{text}
+ \typeout{>>>(hvqrurl) Alternative URL text}%
+ \edef\hv@fooA{\detokenize\expandafter{#2}}%
+ \edef\hv@fooB{\detokenize\expandafter{\qr@url@linktext}}%
+ \href{\hv@fooA}{\hv@fooB}%
\fi
\fi
\edef\reserved@a{\noexpand\marginnote{\noexpand\color{qr@url@qrcolor}\noexpand\qrcode{%