diff options
author | Karl Berry <karl@freefriends.org> | 2021-05-18 20:15:49 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-05-18 20:15:49 +0000 |
commit | 95c07519379ea4d3ce0a74fd686e5f456b2b1840 (patch) | |
tree | 8839391676ee4277fe580aa86cac9f1b39f4fb60 /Master/texmf-dist/tex/latex/hvqrurl | |
parent | 20e6010d6ddc56ddd3e31a998faa9879c0235aa3 (diff) |
hvqrurl (18may21)
git-svn-id: svn://tug.org/texlive/trunk@59256 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/hvqrurl')
-rw-r--r-- | Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty | 11 |
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]}% |