texlive[69705] Master/texmf-dist: hvqrurl (4feb24)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 4 22:12:59 CET 2024


Revision: 69705
          https://tug.org/svn/texlive?view=revision&revision=69705
Author:   karl
Date:     2024-02-04 22:12:58 +0100 (Sun, 04 Feb 2024)
Log Message:
-----------
hvqrurl (4feb24)

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-04 21:12:48 UTC (rev 69704)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes	2024-02-04 21:12:58 UTC (rev 69705)
@@ -1,4 +1,5 @@
 hvqrurl.sty:    
+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
 0.04  2024-01-18  - fix for wrong 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-04 21:12:48 UTC (rev 69704)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex	2024-02-04 21:12:58 UTC (rev 69705)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.tex 867 2024-02-02 09:03:16Z herbert $
+%% $Id: hvqrurl.tex 870 2024-02-03 20:38:44Z herbert $
 \listfiles
 \errorcontextlines=100
 \documentclass[twoside=on,usegeometry]{scrartcl}
@@ -82,6 +82,8 @@
 
 \subsection{No link with \LPack{hyperref}}
 
+This needs package hyperref, which is loaded by default. With the optional argument
+\Lkeyword{nohyperref} you can prevent the loading of this package.
 
 \begin{lstlisting}
 With qrlink=nolink the QR code is no link: \hvqrurl[qrlink=nolink]{https://mirror.ctan.org/pkg/hvqrurl}.
@@ -89,8 +91,12 @@
 \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.
+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-04 21:12:48 UTC (rev 69704)
+++ trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2024-02-04 21:12:58 UTC (rev 69705)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.sty 867 2024-02-02 09:03:16Z herbert $
+%% $Id: hvqrurl.sty 870 2024-02-03 20:38:44Z 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/02 v.0.05a (Herbert Voss) Supports qr images into the margin (hv)] 
+  2024/02/03 v.0.06 (Herbert Voss) Supports qr images into the margin (hv)] 
 %
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{url}
@@ -16,6 +16,12 @@
 \RequirePackage{qrcode}
 \RequirePackage{xkeyval}
 
+\newif\if at no@hyperref \@no at hyperreffalse
+\DeclareOption{nohyperref}{\@no at hyperreftrue}           
+\ProcessOptions 
+
+\if at no@hyperref\else\RequirePackage{hyperref}\fi
+
 \newlength\qr at url@qrheight
 \newlength\qr at url@qradjust
 
@@ -36,19 +42,22 @@
 
 \def\hvqr at url*{\hvqr@@url}
 
+
 \newcommand*\hvqr@@url[2][]{%
   \begingroup
   \providecommand*\qr at blank{0}%
   \ifx\relax#1\relax \else\hvqrset{#1}\fi
+  % Set options for package qrcode
   \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\relax\qr at url@linktext\relax % 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}%
     \fi
-    \expandafter\url\expandafter{\hv at foo}%
   \fi
   \edef\reserved at a{\noexpand\marginnote{\noexpand\color{qr at url@qrcolor}\noexpand\qrcode{%
      \detokenize\expandafter{#2}}}[\qr at url@qradjust]}%



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