texlive[69723] Master/texmf-dist: hvqrurl (6feb24)

commits+karl at tug.org commits+karl at tug.org
Tue Feb 6 21:33:34 CET 2024


Revision: 69723
          https://tug.org/svn/texlive?view=revision&revision=69723
Author:   karl
Date:     2024-02-06 21:33:34 +0100 (Tue, 06 Feb 2024)
Log Message:
-----------
hvqrurl (6feb24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes
    trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf
    trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex
    trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty

Modified: trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes	2024-02-06 20:33:26 UTC (rev 69722)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes	2024-02-06 20:33:34 UTC (rev 69723)
@@ -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

Modified: trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex	2024-02-06 20:33:26 UTC (rev 69722)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex	2024-02-06 20:33:34 UTC (rev 69723)
@@ -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 at tug.org}}}
 \date{\today}
 \maketitle
@@ -91,12 +91,14 @@
 \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.
 
 
 
 
 
+
 \subsection{Color of the QR code}
 Without using \LPack{hyperref} the default color is \Lkeyval{black}. It can be changed by
 the optional argument \Lkeyword{qrcolor}. The package 

Modified: trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2024-02-06 20:33:26 UTC (rev 69722)
+++ trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2024-02-06 20:33:34 UTC (rev 69723)
@@ -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 at 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 at url@qrlink,height=\qr at url@qrheight,level=\qr at url@qrlevel}%
   \ifhv at qrreverse\reversemarginpar\fi
   \if at tempswa
-    \ifx\@empty\qr at url@linktext % alternative link text
+    \ifx\@empty\qr at url@linktext % alternative link text?
       \edef\hv at foo{\detokenize\expandafter{#2}}%
       \url{\hv at foo}%
     \else
-      \edef\hv at foo{\detokenize\expandafter{\qr at url@linktext}}%
-      \href{#2}{\hv at foo}%
+      % \href[options]{URL}{text}
+      \typeout{>>>(hvqrurl) Alternative URL text}%
+      \edef\hv at fooA{\detokenize\expandafter{#2}}%
+      \edef\hv at fooB{\detokenize\expandafter{\qr at url@linktext}}%
+      \href{\hv at fooA}{\hv at fooB}%
     \fi
   \fi
   \edef\reserved at a{\noexpand\marginnote{\noexpand\color{qr at url@qrcolor}\noexpand\qrcode{%



More information about the tex-live-commits mailing list.