texlive[59256] Master/texmf-dist: hvqrurl (18may21)

commits+karl at tug.org commits+karl at tug.org
Tue May 18 22:15:49 CEST 2021


Revision: 59256
          http://tug.org/svn/texlive?view=revision&revision=59256
Author:   karl
Date:     2021-05-18 22:15:49 +0200 (Tue, 18 May 2021)
Log Message:
-----------
hvqrurl (18may21)

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	2021-05-18 20:15:31 UTC (rev 59255)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes	2021-05-18 20:15:49 UTC (rev 59256)
@@ -1,3 +1,5 @@
 hvqrurl.sty:    
+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
 0.01  2019-11-27  - first CTAN version

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	2021-05-18 20:15:31 UTC (rev 59255)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex	2021-05-18 20:15:49 UTC (rev 59256)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.tex 1119 2019-11-30 17:36:28Z herbert $
+%% $Id: hvqrurl.tex 1123 2019-12-01 09:16:34Z herbert $
 \listfiles
 \errorcontextlines=100
 \documentclass[twoside,usegeometry]{scrartcl}
@@ -11,6 +11,7 @@
 
 \usepackage[showframe=false]{geometry}
 \usepackage{listings}
+\usepackage{makeidx}\makeindex
 %
 \lstset{%
     language=[LaTeX]TeX,%
@@ -37,7 +38,7 @@
 \hypersetup{urlcolor=blue, linktocpage, colorlinks=true}%
 
 \begin{document}
-\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.01a}
+\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.02}
 \author{Herbert Voß\thanks{\protect\url{hvoss at tug.org}}}
 \date{\today}
 \maketitle
@@ -79,8 +80,8 @@
 \subsection{No link with \LPack{hyperref}}
 
 \begin{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}.
+With qrlink=nolink the QR code is no link: \hvqrurl[qrlink=nolink]{https://mirror.ctan.org/pkg/hvqrurl}.
+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
@@ -93,7 +94,7 @@
 the reason why an extended color definition is possible. For this example we used
 
 \begin{lstlisting}
-The package \LPack{xcolor}\hvqrurl*[qrcolor=red!40!white]{http://mirror.ctan.org/pkg/xcolor}
+The package xcolor\hvqrurl*[qrcolor=red!40!white]{http://mirror.ctan.org/pkg/xcolor}
  is loaded by default, ...
 \end{lstlisting}
 
@@ -105,7 +106,7 @@
 setting without a vertical adjustment.
 
 \begin{lstlisting}
-The default value of \Lkeyword{qradjust} is \verb|-1.5\normalbaselineskip|. Setting the value
+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.
 \end{lstlisting}
@@ -118,7 +119,7 @@
 This is an exetremely long url where it may make sense to use a larger QR code.
 
 \begin{lstlisting}
-it can be changed by setting \Lkeyword{qrheight} to another value, for example to 2cm:
+it can be changed by setting qrheight to another value, for example to 2cm:
 \hvqrurl*[qrheight=2cm]{https://identity.fu-berlin.de/idp-fub/profile/SAML2/Redirect/SSO;jsessionid=71C984647E3B8F2E716CA067CB13387E?execution=e1s1}
 This is an exetremely long url where it may make sense to use a larger QR code.
 \end{lstlisting}
@@ -144,7 +145,19 @@
 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.
+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.
 
+\begin{lstlisting}
+This one (\hvqrurl{http://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.
+\end{lstlisting}
+
+
 \printindex
 
 

Modified: trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2021-05-18 20:15:31 UTC (rev 59255)
+++ trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty	2021-05-18 20:15:49 UTC (rev 59256)
@@ -1,13 +1,13 @@
-%% $Id: hvqrurl.sty 1117 2019-11-28 20:54:41Z herbert $
+%% $Id: hvqrurl.sty 1123 2019-12-01 09:16:34Z 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 Herbert Voss hvoss at tug.org
+% Copyright 2019,21 Herbert Voss hvoss at tug.org
 %%
 \ProvidesPackage{hvqrurl}[%
-  2019/12/01 v.0.01a (Herbert Voss) Supports qr images into the margin (hv)] 
+  2021/05/18 v.0.02 (Herbert Voss) Supports qr images into the margin (hv)] 
 %
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{url}
@@ -24,12 +24,14 @@
 \define at key{hvqr}{qrcolor}[black]{\colorlet{qr at url@qrcolor}{#1}}
 \define at key{hvqr}{qrlevel}[M]{\def\qr at url@qrlevel{#1}}
 \define at key{hvqr}{qrlink}[link]{\def\qr at url@qrlink{#1}}
+\define at boolkey{hvqr}[hv@]{qrreverse}[true]{}%		use of the hvOBox contents
 
-\setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link}% the default setting
+\setkeys{hvqr}{qrheight,qrcolor=black,qradjust,qrlevel,qrlink=link,qrreverse=false}% the default setting
 
 \newcommand*\hvqrset[1]{\setkeys{hvqr}{#1}}
 
 \def\hvqrurl{\@ifnextchar*{\@tempswafalse\hvqr at url}{\@tempswatrue\hvqr@@url}}
+
 \def\hvqr at url*{\hvqr@@url}
 
 \newcommand*\hvqr@@url[2][]{%
@@ -37,6 +39,7 @@
   \providecommand*\qr at blank{0}%
   \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
   \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.