texlive[74494] Master/texmf-dist: href-ul (7mar25)
commits+karl at tug.org
commits+karl at tug.org
Fri Mar 7 23:35:41 CET 2025
Revision: 74494
https://tug.org/svn/texlive?view=revision&revision=74494
Author: karl
Date: 2025-03-07 23:35:41 +0100 (Fri, 07 Mar 2025)
Log Message:
-----------
href-ul (7mar25)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt
trunk/Master/texmf-dist/doc/latex/href-ul/href-ul.pdf
trunk/Master/texmf-dist/source/latex/href-ul/href-ul.dtx
trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
Modified: trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt 2025-03-07 22:35:30 UTC (rev 74493)
+++ trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt 2025-03-07 22:35:41 UTC (rev 74494)
@@ -1,6 +1,6 @@
hard hyperref
hard pgfopts
-hard soul
+hard ulem
hard url
soft docshots
soft environ
Modified: trunk/Master/texmf-dist/doc/latex/href-ul/href-ul.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/href-ul/href-ul.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/href-ul/href-ul.dtx 2025-03-07 22:35:30 UTC (rev 74493)
+++ trunk/Master/texmf-dist/source/latex/href-ul/href-ul.dtx 2025-03-07 22:35:41 UTC (rev 74494)
@@ -31,7 +31,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{href-ul}
%<*package>
-[2025/03/02 0.5.1 Underlined Hyperlinks]
+[2025/03/07 0.5.2 Underlined Hyperlinks]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -73,21 +73,7 @@
% \end{document}
% \end{docshot}
%
-% The package also supports URL breaking at various special characters, allowing
-% long URLs to break naturally across lines:
-%
-% \begin{docshot}
-% \documentclass{article}
-% \pagestyle{empty}
-% \usepackage{href-ul}
-% \begin{document}
-% \parbox{7em}{
-% \href{https://google.com}{%
-% This-link-has-a-very-%
-% long-URL-that-will-break-%
-% at-appropriate-points}}
-% \end{document}
-% \end{docshot}
+% The package doesn't support line breaking inside the title of the link.
% Changing the color of the text also changes the color of the line:
% \begin{docshot}
@@ -134,6 +120,7 @@
% \changes{0.4.0}{2024/01/09}{Package options processing introduced with a single \texttt{plain} option.}
% \changes{0.5.0}{2025/03/02}{Enhanced URL breaking functionality to improve handling of long URLs.}
% \changes{0.5.1}{2025/03/02}{Added text breaking capabilities to the second argument of \texttt{\char`\\href} and shifted from \texttt{ulem} to \texttt{soul} package.}
+% \changes{0.5.2}{2025/03/07}{Decided not to use \texttt{soul} package, because it's too fragile, and returned back to \texttt{ulem}.}
% First, we process package options:
% \begin{macrocode}
@@ -145,11 +132,11 @@
\ProcessPgfPackageOptions{/href}
% \end{macrocode}
-% Then, we include the |soul| package in order to enable underscores:
+% Then, we include the |ulem| package in order to enable underscores:
% \begin{macrocode}
\makeatletter
\ifdefined\href at plain\else
-\RequirePackage{soul}
+\RequirePackage{ulem}
\fi
\makeatother
% \end{macrocode}
@@ -164,35 +151,20 @@
% Then, we re-define the default |\href| command:
% \begin{macrocode}
-\makeatletter%
-\begingroup%
-\catcode`\$=6 %
-\catcode`\#=12 %
+\makeatletter
+\begingroup
+\catcode`\$=6
+\catcode`\#=12
\gdef\href at split$1#$2#$3\\$4{%
\hyper@@link{$1}{$2}{%
- \ifdefined\href at plain$4\else\ul{$4}\fi}%
+ \ifdefined\href at plain$4\else\uline{$4}\fi%
+ }%
\endgroup%
-}%
-\endgroup%
+}
+\endgroup
+\makeatother
% \end{macrocode}
-% \begin{macro}{\href}
-% Then, we define our own |\href| command:
-% \begin{macrocode}
-\let\href at orig\href
-\renewcommand{\href}[2]{%
- \begingroup
- \urlstyle{same}%
- \def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
- \do\)\do\,\do\?\do\'\do+\do\=\do\#\do\-}%
- \def\UrlBigBreaks{\do\:\do\/}%
- \href at orig{#1}{#2}%
- \endgroup
-}%
-\makeatother%
-% \end{macrocode}
-% \end{macro}
-
% \Finale
%\clearpage
Modified: trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty 2025-03-07 22:35:30 UTC (rev 74493)
+++ trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty 2025-03-07 22:35:41 UTC (rev 74494)
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{href-ul}
-[2025/03/02 0.5.1 Underlined Hyperlinks]
+[2025/03/07 0.5.2 Underlined Hyperlinks]
@@ -48,7 +48,7 @@
\makeatletter
\ifdefined\href at plain\else
-\RequirePackage{soul}
+\RequirePackage{ulem}
\fi
\makeatother
@@ -57,30 +57,20 @@
\RequirePackage{hyperref}
\RequirePackage{url}
-\makeatletter%
-\begingroup%
-\catcode`\$=6 %
-\catcode`\#=12 %
+\makeatletter
+\begingroup
+\catcode`\$=6
+\catcode`\#=12
\gdef\href at split$1#$2#$3\\$4{%
\hyper@@link{$1}{$2}{%
- \ifdefined\href at plain$4\else\ul{$4}\fi}%
+ \ifdefined\href at plain$4\else\uline{$4}\fi%
+ }%
\endgroup%
-}%
-\endgroup%
+}
+\endgroup
+\makeatother
-\let\href at orig\href
-\renewcommand{\href}[2]{%
- \begingroup
- \urlstyle{same}%
- \def\UrlBreaks{\do\.\do\@\do\\\do\/\do\!\do\_\do\|\do\;\do\>\do\]%
- \do\)\do\,\do\?\do\'\do+\do\=\do\#\do\-}%
- \def\UrlBigBreaks{\do\:\do\/}%
- \href at orig{#1}{#2}%
- \endgroup
-}%
-\makeatother%
-
\endinput
%%
%% End of file `href-ul.sty'.
More information about the tex-live-commits
mailing list.