texlive[69677] Master/texmf-dist: hvqrurl (2feb24)
commits+karl at tug.org
commits+karl at tug.org
Fri Feb 2 22:42:21 CET 2024
Revision: 69677
https://tug.org/svn/texlive?view=revision&revision=69677
Author: karl
Date: 2024-02-02 22:42:21 +0100 (Fri, 02 Feb 2024)
Log Message:
-----------
hvqrurl (2feb24)
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-02 21:42:12 UTC (rev 69676)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/Changes 2024-02-02 21:42:21 UTC (rev 69677)
@@ -1,4 +1,5 @@
hvqrurl.sty:
+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
0.03 2023-10-29 - fix for # in an url
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-02 21:42:12 UTC (rev 69676)
+++ trunk/Master/texmf-dist/doc/latex/hvqrurl/hvqrurl.tex 2024-02-02 21:42:21 UTC (rev 69677)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.tex 848 2024-01-28 11:57:35Z herbert $
+%% $Id: hvqrurl.tex 867 2024-02-02 09:03:16Z herbert $
\listfiles
\errorcontextlines=100
\documentclass[twoside=on,usegeometry]{scrartcl}
@@ -34,10 +34,11 @@
\usepackage{hvdoctools}
\usepackage{hyperref}
-\hypersetup{urlcolor=blue, linktocpage, colorlinks=true}%
+\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.04}
+\title{Package \texttt{hvqrurl}\\Creating a QR-code of an URL in the margin \\\small ver 0.05a}
\author{Herbert Voß\thanks{\protect\url{hvoss at tug.org}}}
\date{\today}
\maketitle
@@ -64,7 +65,10 @@
With the default macro \Lcs{hvqrurl} the URL is printed as as QR code into the margin and
in the the text as usual with the macro \Lcs{url}, for example \hvqrurl{https://mirror.ctan.org/pkg/hvqrurl}.
With \LPack{hyperref} you'll get the the same color for the QR code as for the URL link and, of course,
-is also a link. This example shows the default setting for a QR code.
+it is also a link. This example shows the output of the QR code with the default setting and
+an active \LPack{hyppref}.
+The star version of the command
+prints only the QR code but not the URL in the text.
With \Lcs{hvqrset} one can set the optional arguments globally. For example if one do not want all
QR codes not as a link when using \LPack{hyperref}:
@@ -78,6 +82,7 @@
\subsection{No link with \LPack{hyperref}}
+
\begin{lstlisting}
With qrlink=nolink the QR code is no link: \hvqrurl[qrlink=nolink]{https://mirror.ctan.org/pkg/hvqrurl}.
The default setting is qrlink=link.
@@ -88,8 +93,9 @@
\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]{https://mirror.ctan.org/pkg/xcolor}
- is loaded by default,
+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}
@@ -98,7 +104,7 @@
\end{lstlisting}
\subsection{Vertical position of the QR code}
-By default the baseline of the QR code is nearly at the same height as the baseline of the textline.
+By default the baseline of the QR code is nearly at the same height as the baseline of the text.
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
@@ -118,12 +124,12 @@
By default the QR code is a square with height and width of 1cm.
it can be changed by setting \Lkeyword{qrheight} to another value, for example to 2cm:
\hvqrurl*[qrlink=nolink,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.
+This is an extremely long url where it may make sense to use a larger QR code.
\begin{lstlisting}
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.
+This is an extremely long url where it may make sense to use a larger QR code.
\end{lstlisting}
@@ -166,6 +172,7 @@
this one: \hvqrurl[linktext=https://www.uni-bonn.de]%
{https://www.uni-bonn.de/de/studium/studienangebot/studiengaenge-a-z/kunstgeschichte-bazf?set_language=de}.
+
\begin{lstlisting}
By default the QR code is set with the given text. If the link is too long, one
can use a short link with the optional argument \Lkeyword{linktext} for the text and
@@ -174,7 +181,11 @@
{https://www.uni-bonn.de/de/studium/studienangebot/studiengaenge-a-z/kunstgeschichte-bazf?set_language=de}.
\end{lstlisting}
+It makes no sense to use the star version \Lcs{hvqrurl*} together with the optional argument
+\Lkeyword{linktext}!
+
+
\printindex
Modified: trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty 2024-02-02 21:42:12 UTC (rev 69676)
+++ trunk/Master/texmf-dist/tex/latex/hvqrurl/hvqrurl.sty 2024-02-02 21:42:21 UTC (rev 69677)
@@ -1,4 +1,4 @@
-%% $Id: hvqrurl.sty 848 2024-01-28 11:57:35Z herbert $
+%% $Id: hvqrurl.sty 867 2024-02-02 09:03:16Z 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/01/28 v.0.05 (Herbert Voss) Supports qr images into the margin (hv)]
+ 2024/02/02 v.0.05a (Herbert Voss) Supports qr images into the margin (hv)]
%
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{url}
More information about the tex-live-commits
mailing list.