summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty11
1 files changed, 7 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty b/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
index bf27b32006e..64bc0ead4a7 100644
--- a/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
+++ b/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
@@ -1,13 +1,13 @@
-%% $Id: hvqrurl.sty 1117 2019-11-28 20:54:41Z herbert $
+%% $Id: hvqrurl.sty 1123 2019-12-01 09:16:34Z 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 Herbert Voss hvoss@tug.org
+% Copyright 2019,21 Herbert Voss hvoss@tug.org
%%
\ProvidesPackage{hvqrurl}[%
- 2019/12/01 v.0.01a (Herbert Voss) Supports qr images into the margin (hv)]
+ 2021/05/18 v.0.02 (Herbert Voss) Supports qr images into the margin (hv)]
%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{url}
@@ -24,12 +24,14 @@
\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
-\setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link}% the default setting
+\setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link,qrreverse=false}% the default setting
\newcommand*\hvqrset[1]{\setkeys{hvqr}{#1}}
\def\hvqrurl{\@ifnextchar*{\@tempswafalse\hvqr@url}{\@tempswatrue\hvqr@@url}}
+
\def\hvqr@url*{\hvqr@@url}
\newcommand*\hvqr@@url[2][]{%
@@ -37,6 +39,7 @@
\providecommand*\qr@blank{0}%
\ifx\relax#1\relax \else\hvqrset{#1}\fi
\expandafter\qrset\expandafter{\qr@url@qrlink,height=\qr@url@qrheight,level=\qr@url@qrlevel}%
+ \ifhv@qrreverse\reversemarginpar\fi
\if@tempswa\url{#2}\fi
\edef\reserved@a{\noexpand\marginnote{\noexpand\color{qr@url@qrcolor}\noexpand\qrcode{%
\detokenize\expandafter{#2}}}[\qr@url@qradjust]}%