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.sty10
1 files changed, 5 insertions, 5 deletions
diff --git a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
index fa73a30854..e016534270 100644
--- a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
+++ b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty
@@ -1,13 +1,13 @@
-%% $Id: hvqrurl.sty 790 2023-10-29 15:33:17Z herbert $
+%% $Id: hvqrurl.sty 837 2024-01-18 07:43:31Z herbert $
%%
%% This file is distributed under the terms of the LaTeX Project Public
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
%% Either version 1.3 or, at your option, any later version.
%%
-% Copyright 2019,21,23 Herbert Voss hvoss@tug.org
+% Copyright 2019,21,23,24 Herbert Voss hvoss@tug.org
%%
\ProvidesPackage{hvqrurl}[%
- 2023/10/29 v.0.03 (Herbert Voss) Supports qr images into the margin (hv)]
+ 2024/01/18 v.0.04 (Herbert Voss) Supports qr images into the margin (hv)]
%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{url}
@@ -24,7 +24,7 @@
\define@key{hvqr}{qrcolor}[black]{\colorlet{qr@url@qrcolor}{#1}}
\define@key{hvqr}{qrlevel}[M]{\def\qr@url@qrlevel{#1}}
\define@key{hvqr}{qrlink}[link]{\def\qr@url@qrlink{#1}}
-\define@boolkey{hvqr}[hv@]{qrreverse}[true]{}% use of the hvOBox contents
+\define@boolkey{hvqr}[hv@]{qrreverse}[true]{}
\setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link,qrreverse=false}% the default setting
@@ -42,7 +42,7 @@
\ifhv@qrreverse\reversemarginpar\fi
\if@tempswa
\edef\hv@foo{\detokenize\expandafter{#2}}%
- \url{\hv@foo}
+ \expandafter\url\expandafter{\hv@foo}%
\fi
\edef\reserved@a{\noexpand\marginnote{\noexpand\color{qr@url@qrcolor}\noexpand\qrcode{%
\detokenize\expandafter{#2}}}[\qr@url@qradjust]}%