diff options
author | Karl Berry <karl@freefriends.org> | 2024-05-15 19:13:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-05-15 19:13:56 +0000 |
commit | 0a47f393e41f85c025951b57bc192814b69b6498 (patch) | |
tree | 3685f8dbb98b3e1ade0bd1f3d348ed7b0aabfc84 /Master | |
parent | 1eab196245686a0767cb2e6d069baf20f0d9a4bd (diff) |
hvqrurl (15may24)
git-svn-id: svn://tug.org/texlive/trunk@71267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/hvqrurl/Changes | 1 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf | bin | 117382 -> 118777 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex | 6 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty | 33 |
4 files changed, 28 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/hvqrurl/Changes b/Master/texmf-dist/doc/latex/hvqrurl/Changes index aa30416b547..ac9fca90d33 100644 --- a/Master/texmf-dist/doc/latex/hvqrurl/Changes +++ b/Master/texmf-dist/doc/latex/hvqrurl/Changes @@ -1,4 +1,5 @@ hvqrurl.sty: +0.08 2024-05-14 - fix for color setting of the qrcode 0.07 2024-02-06 - allow active chars in linktext 0.06 2024-02-03 - fix for introduced bug with linktext 0.05a 2024-02-02 - modified documentation diff --git a/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf b/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf Binary files differindex 95b739d2b2b..0960eb3f179 100644 --- a/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf +++ b/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf diff --git a/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex b/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex index 89fd8cdea66..9886a639c05 100644 --- a/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex +++ b/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex @@ -1,4 +1,4 @@ -%% $Id: hvqrurl.tex 872 2024-02-06 16:11:47Z herbert $ +%% $Id: hvqrurl.tex 895 2024-05-14 19:22:17Z herbert $ \listfiles \errorcontextlines=100 \documentclass[twoside=on,usegeometry]{scrartcl} @@ -38,7 +38,7 @@ linktocpage, colorlinks=true}% \begin{document} -\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.07} +\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.08} \author{Herbert Voß\thanks{\protect\url{hvoss@tug.org}}} \date{\today} \maketitle @@ -100,7 +100,7 @@ if hyperref is aktive. \subsection{Color of the QR code} -Without using \LPack{hyperref} the default color is \Lkeyval{black}. It can be changed by +The default color is \Lkeyval{black}. It can be changed by the optional argument \Lkeyword{qrcolor}. The package \LPack{xcolor}\hvqrurl*[qrlink=nolink,qrcolor=red!40!white]{https://mirror.ctan.org/pkg/xcolor} is loaded by default, diff --git a/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty b/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty index af29f1a446d..da8f84fc105 100644 --- a/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty +++ b/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty @@ -1,4 +1,4 @@ -%% $Id: hvqrurl.sty 872 2024-02-06 16:11:47Z herbert $ +%% $Id: hvqrurl.sty 895 2024-05-14 19:22:17Z 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/06 v.0.07 (Herbert Voss) Supports qr images into the margin (hv)] + 2024/05/14 v.0.08 (Herbert Voss) Supports qr images into the margin (hv)] % \NeedsTeXFormat{LaTeX2e} \RequirePackage{url} @@ -16,7 +16,9 @@ \RequirePackage{qrcode} \RequirePackage{xkeyval} -\newif\if@no@hyperref \@no@hyperreffalse +\newif\if@no@hyperref +\@no@hyperreffalse + \DeclareOption{nohyperref}{\@no@hyperreftrue} \ProcessOptions @@ -33,6 +35,8 @@ \define@key{hvqr}{linktext}[]{\def\qr@url@linktext{#1}} \define@boolkey{hvqr}[hv@]{qrreverse}[true]{} +\newcommand*\qr@url@qr@nolink{nolink} + \setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link, qrreverse=false,linktext={}}% the default setting @@ -46,10 +50,6 @@ \newcommand*\hvqr@@url[2][]{% \begingroup \providecommand*\qr@blank{0}% - \ifx\relax#1\relax \else\hvqrset{#1}\fi - % Set options for package qrcode - \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? \edef\hv@foo{\detokenize\expandafter{#2}}% @@ -62,9 +62,24 @@ \href{\hv@fooA}{\hv@fooB}% \fi \fi - \edef\reserved@a{\noexpand\marginnote{\noexpand\color{qr@url@qrcolor}\noexpand\qrcode{% +% \endgroup +% \begingroup + \ifx\relax#1\relax \else\hvqrset{#1}\fi + % Set options for package qrcode + \expandafter\qrset\expandafter{\qr@url@qrlink,height=\qr@url@qrheight,level=\qr@url@qrlevel}% + \ifhv@qrreverse\reversemarginpar\fi + \if@no@hyperref + \color{qr@url@qrcolor}% + \else + \ifx\qr@url@qrlink\qr@url@qr@nolink + \color{qr@url@qrcolor}% + \else + \hypersetup{urlcolor=qr@url@qrcolor}% + \fi + \fi + \edef\reserved@a{\noexpand\marginnote{\noexpand\qrcode{% \detokenize\expandafter{#2}}}[\qr@url@qradjust]}% - \reserved@a + \reserved@a \endgroup } |