summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hvqrurl
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-07 03:01:02 +0000
committerNorbert Preining <norbert@preining.info>2024-02-07 03:01:02 +0000
commit50fcb5024d3243d7e1601abf72b5f4444dd618b6 (patch)
treef53a7b130aa3e1ab8afb00c716a31c33e888f625 /macros/latex/contrib/hvqrurl
parent25b83ac051a8ec3bf79f47e3c3c66b3567a3216a (diff)
CTAN sync 202402070301
Diffstat (limited to 'macros/latex/contrib/hvqrurl')
-rw-r--r--macros/latex/contrib/hvqrurl/Changes1
-rw-r--r--macros/latex/contrib/hvqrurl/doc/hvqrurl.pdfbin115679 -> 117382 bytes
-rw-r--r--macros/latex/contrib/hvqrurl/doc/hvqrurl.tex8
-rw-r--r--macros/latex/contrib/hvqrurl/latex/hvqrurl.sty13
4 files changed, 14 insertions, 8 deletions
diff --git a/macros/latex/contrib/hvqrurl/Changes b/macros/latex/contrib/hvqrurl/Changes
index e7b6ca476c..aa30416b54 100644
--- a/macros/latex/contrib/hvqrurl/Changes
+++ b/macros/latex/contrib/hvqrurl/Changes
@@ -1,4 +1,5 @@
hvqrurl.sty:
+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
0.05 2024-01-28 - added optional argument for alternative link text
diff --git a/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf b/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf
index b5103b9d16..95b739d2b2 100644
--- a/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf
+++ b/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf
Binary files differ
diff --git a/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex b/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex
index 79c2c395ea..89fd8cdea6 100644
--- a/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex
+++ b/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.tex 870 2024-02-03 20:38:44Z herbert $
+%% $Id: hvqrurl.tex 872 2024-02-06 16:11:47Z 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.05a}
+\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.07}
\author{Herbert Voß\thanks{\protect\url{hvoss@tug.org}}}
\date{\today}
\maketitle
@@ -91,7 +91,9 @@ The default setting is qrlink=link.
\end{lstlisting}
With \Lkeyset{qrlink=nolink} the QR code is no link: \hvqrurl[qrlink=nolink]{https://mirror.ctan.org/pkg/hvqrurl}.
The default setting is \Lkeyset{qrlink=link}. Without using \LPack{hyperref} this optional argument
-has no meaning. The optional argument \Lkeyword{linktext} is also only valid, if hyperref is aktive.
+has no meaning. The optional argument \Lkeyword{linktext} is also only valid,
+if hyperref is aktive.
+
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{%