texlive[68693] Master/texmf-dist: hvqrurl (29oct23)

commits+karl at tug.org commits+karl at tug.org
Sun Oct 29 21:14:23 CET 2023


Revision: 68693
          https://tug.org/svn/texlive?view=revision&revision=68693
Author:   karl
Date:     2023-10-29 21:14:23 +0100 (Sun, 29 Oct 2023)
Log Message:
-----------
hvqrurl (29oct23)

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	2023-10-29 20:14:15 UTC (rev 68692)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes	2023-10-29 20:14:23 UTC (rev 68693)
@@ -1,4 +1,5 @@
 hvqrurl.sty:    
+0.03  2023-10-29  - fix for # in an url
 0.02  2021-05-18  - added optional argument qrreverse to the set
                     the qr code in the opposite margin
 0.01a 2019-12-01  - fixes to the documentation

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	2023-10-29 20:14:15 UTC (rev 68692)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex	2023-10-29 20:14:23 UTC (rev 68693)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.tex 1123 2019-12-01 09:16:34Z herbert $
+%% $Id: hvqrurl.tex 790 2023-10-29 15:33:17Z herbert $
 \listfiles
 \errorcontextlines=100
 \documentclass[twoside,usegeometry]{scrartcl}
@@ -11,7 +11,8 @@
 
 \usepackage[showframe=false]{geometry}
 \usepackage{listings}
-\usepackage{makeidx}\makeindex
+\usepackage[imakeidx]{xindex}
+\makeindex
 %
 \lstset{%
     language=[LaTeX]TeX,%
@@ -30,7 +31,6 @@
 
 \usepackage{ragged2e}
 \usepackage{hvqrurl}
-\usepackage{xindex}
 
 \usepackage{hvdoctools}
 
@@ -89,12 +89,12 @@
 
 \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 \LPack{xcolor}\hvqrurl*[qrlink=nolink,qrcolor=red!40!white]{http://mirror.ctan.org/pkg/xcolor}
+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, 
 the reason why an extended color definition is possible. For this example we used
 
 \begin{lstlisting}
-The package xcolor\hvqrurl*[qrcolor=red!40!white]{http://mirror.ctan.org/pkg/xcolor}
+The package xcolor\hvqrurl*[qrcolor=red!40!white]{https://mirror.ctan.org/pkg/xcolor}
  is loaded by default, ...
 \end{lstlisting}
 
@@ -102,13 +102,16 @@
 By default the baseline of the QR code is nearly at the same height as the baseline of the textline.
 However, when changing the size of the QR code it may be nessesary to move up or down the QR code.
 The default value of \Lkeyword{qradjust} is \verb|-1.5\normalbaselineskip|. Setting the value
-to 0pt the QR code \hvqrurl*[qrlink=nolink,qradjust=0pt]{http://ctan.org/} is moved down which is the default
+to 0pt the QR code 
+\hvqrurl[qrlink=nolink,qradjust=0pt]{https://latex.texnik.de/tutorials/packages/#header-footer} 
+is moved down which is the default
 setting without a vertical adjustment.
 
 \begin{lstlisting}
 The default value of qradjust is \verb|-1.5\normalbaselineskip|. Setting the value
-to 0pt the QR code \hvqrurl*[qradjust=0pt]{http://ctan.org/} is moved down which is the default
-setting without a vertical adjustment.
+to 0pt the QR code 
+\hvqrurl[qradjust=0pt]{https://latex.texnik.de/tutorials/packages/#header-footer} 
+is moved down which is the default setting without a vertical adjustment.
 \end{lstlisting}
 
 
@@ -147,14 +150,14 @@
 
 \subsection{Inner or outer margin for  the QR code}
 By default the QR code is set in the right (oneside document) or outer margin (twoside) of the
-document. This one (\hvqrurl{http://hvoss.org}) is at the default position.
+document. This one (\hvqrurl{https://hvoss.org}) is at the default position.
 With the optional argument \Lkeyword{qrreverse} it can be placed in the left or inner margin.
-This one (\hvqrurl[qrreverse]{http://latex.texnik.de}) is in the other margin.
+This one (\hvqrurl[qrreverse]{https://latex.texnik.de}) is in the other margin.
 
 \begin{lstlisting}
-This one (\hvqrurl{http://hvoss.org}) is at the default position.
+This one (\hvqrurl{https://hvoss.org}) is at the default position.
 With the optional argument \Lkeyword{qrreverse} it can be placed in the left or inner margin.
-This one (\hvqrurl[qrreverse]{http://latex.texnik.de}) is in the other margin.
+This one (\hvqrurl[qrreverse]{https://latex.texnik.de}) is in the other margin.
 \end{lstlisting}
 
 

Modified: trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2023-10-29 20:14:15 UTC (rev 68692)
+++ trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2023-10-29 20:14:23 UTC (rev 68693)
@@ -1,13 +1,13 @@
-%% $Id: hvqrurl.sty 1123 2019-12-01 09:16:34Z herbert $
+%% $Id: hvqrurl.sty 790 2023-10-29 15:33: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.
 %% Either version 1.3 or, at your option, any later version.
 %%
-% Copyright 2019,21 Herbert Voss hvoss at tug.org
+% Copyright 2019,21,23 Herbert Voss hvoss at tug.org
 %%
 \ProvidesPackage{hvqrurl}[%
-  2021/05/18 v.0.02 (Herbert Voss) Supports qr images into the margin (hv)] 
+  2023/10/29 v.0.03 (Herbert Voss) Supports qr images into the margin (hv)] 
 %
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{url}
@@ -40,7 +40,10 @@
   \ifx\relax#1\relax \else\hvqrset{#1}\fi
   \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\url{#2}\fi
+  \if at tempswa
+    \edef\hv at foo{\detokenize\expandafter{#2}}%
+    \url{\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]}%
   \reserved at a



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