diff options
author | Norbert Preining <norbert@preining.info> | 2023-10-30 03:02:43 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2023-10-30 03:02:43 +0000 |
commit | 8647e4164dd0349eb19a3068ec19c135647e1b4c (patch) | |
tree | 1aa23fe4d369d9779070159a2a6aec4536aeca48 /macros/latex/contrib/hvqrurl | |
parent | 63d7dc4d66eb8f96c0c480abe8e5d0eefc434269 (diff) |
CTAN sync 202310300302
Diffstat (limited to 'macros/latex/contrib/hvqrurl')
-rw-r--r-- | macros/latex/contrib/hvqrurl/Changes | 1 | ||||
-rw-r--r-- | macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf | bin | 105059 -> 107179 bytes | |||
-rw-r--r-- | macros/latex/contrib/hvqrurl/doc/hvqrurl.tex | 27 | ||||
-rw-r--r-- | macros/latex/contrib/hvqrurl/latex/hvqrurl.sty | 11 |
4 files changed, 23 insertions, 16 deletions
diff --git a/macros/latex/contrib/hvqrurl/Changes b/macros/latex/contrib/hvqrurl/Changes index e56ba4a168..d9bf68a6b3 100644 --- a/macros/latex/contrib/hvqrurl/Changes +++ b/macros/latex/contrib/hvqrurl/Changes @@ -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 diff --git a/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf b/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf Binary files differindex c2d85e3b27..69e8e5fa77 100644 --- a/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf +++ b/macros/latex/contrib/hvqrurl/doc/hvqrurl.pdf diff --git a/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex b/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex index 6f9d96953f..c3639f6609 100644 --- a/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex +++ b/macros/latex/contrib/hvqrurl/doc/hvqrurl.tex @@ -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 @@ has no meaning. \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 @@ The package xcolor\hvqrurl*[qrcolor=red!40!white]{http://mirror.ctan.org/pkg/xco 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 @@ controlled internally by the package. \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} diff --git a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty index 64bc0ead4a..fa73a30854 100644 --- a/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty +++ b/macros/latex/contrib/hvqrurl/latex/hvqrurl.sty @@ -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@tug.org +% Copyright 2019,21,23 Herbert Voss hvoss@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@url@qrlink,height=\qr@url@qrheight,level=\qr@url@qrlevel}% \ifhv@qrreverse\reversemarginpar\fi - \if@tempswa\url{#2}\fi + \if@tempswa + \edef\hv@foo{\detokenize\expandafter{#2}}% + \url{\hv@foo} + \fi \edef\reserved@a{\noexpand\marginnote{\noexpand\color{qr@url@qrcolor}\noexpand\qrcode{% \detokenize\expandafter{#2}}}[\qr@url@qradjust]}% \reserved@a |