texlive[69359] Master/texmf-dist: href-ul (9jan24)
commits+karl at tug.org
commits+karl at tug.org
Tue Jan 9 22:07:44 CET 2024
Revision: 69359
https://tug.org/svn/texlive?view=revision&revision=69359
Author: karl
Date: 2024-01-09 22:07:44 +0100 (Tue, 09 Jan 2024)
Log Message:
-----------
href-ul (9jan24)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt
trunk/Master/texmf-dist/doc/latex/href-ul/LICENSE.txt
trunk/Master/texmf-dist/doc/latex/href-ul/README.md
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/source/latex/href-ul/href-ul.ins
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 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt 2024-01-09 21:07:44 UTC (rev 69359)
@@ -1,2 +1,18 @@
+hard hyperref
hard ulem
-hard hyperref
+hard pgfopts
+soft docshots
+soft environ
+soft etoolbox
+soft href-ul
+soft hypdoc
+soft l3build
+soft libertine
+soft mathtools
+soft microtype
+soft pdfcrop
+soft pgf
+soft pgfopts
+soft scheme-basic
+soft tools
+soft xetex
Modified: trunk/Master/texmf-dist/doc/latex/href-ul/LICENSE.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/href-ul/LICENSE.txt 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/doc/latex/href-ul/LICENSE.txt 2024-01-09 21:07:44 UTC (rev 69359)
@@ -1,6 +1,6 @@
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/doc/latex/href-ul/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/href-ul/README.md 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/doc/latex/href-ul/README.md 2024-01-09 21:07:44 UTC (rev 69359)
@@ -18,7 +18,7 @@
\end{document}
```
-Otherwise, you can download [`to-be-determined.sty`](https://raw.githubusercontent.com/yegor256/href-ul/gh-pages/href-ul/href-ul.sty) and add to your project.
+Otherwise, you can download [`href-ul.sty`](https://yegor256.github.io/href-ul/href-ul.sty) and add to your project.
If you want to contribute yourself, make a fork, then create a branch,
then run `l3build ctan` in the root directory.
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 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/source/latex/href-ul/href-ul.dtx 2024-01-09 21:07:44 UTC (rev 69359)
@@ -1,7 +1,7 @@
% \iffalse meta-comment
% (The MIT License)
%
-% Copyright (c) 2021-2022 Yegor Bugayenko
+% Copyright (c) 2021-2024 Yegor Bugayenko
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the 'Software'), to deal
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{href-ul}
%<*package>
-[31.10.20220 0.3.0 Underlined Hyperlinks]
+[09.01.20240 0.4.0 Underlined Hyperlinks]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -117,6 +117,18 @@
% \end{document}
% \end{docshot}
+% With the help of the |plain| package option, it's possible to avoid underscores:
+% \docshotOptions{firstline=3,lastline=7}
+% \begin{docshot}
+% \documentclass{article}
+% \pagestyle{empty}
+% \usepackage[plain]{href-ul}
+% \begin{document}
+% This link has no underscore: \\
+% \href{https://google.com}{Google}.
+% \end{document}
+% \end{docshot}
+
% \StopEventually{}
% \section{Implementation}
@@ -123,10 +135,29 @@
% \changes{v0.2.0}{2021/06/11}{Initial version}
% \changes{v0.3.0}{2022/10/31}{We started using "docshots" package for better rendering of examples.}
-% First, we include two packages:
+% First, we process package options:
+% \changes{0.4.0}{2024/01/09}{Package options processing introduced with a single \texttt{plain} option.}
% \begin{macrocode}
+\RequirePackage{pgfopts}
+\pgfkeys{
+ /href/.cd,
+ plain/.store in=\href at plain
+}
+\ProcessPgfPackageOptions{/href}
+% \end{macrocode}
+
+% Then, we include the |ulem| package in order to enable underscores:
+% \begin{macrocode}
+\makeatletter
+\ifdefined\href at plain\else
\PassOptionsToPackage{normalem}{ulem}
\RequirePackage{ulem}
+\fi
+\makeatother
+% \end{macrocode}
+
+% Then, we include the |hyperref| package for PDF hyperlinks:
+% \begin{macrocode}
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
% \end{macrocode}
@@ -134,14 +165,17 @@
% \begin{macro}{\href}
% Then, we define the |\href| command:
% \begin{macrocode}
-\makeatletter\begingroup%
+\makeatletter%
+\begingroup%
\catcode`\$=6 %
\catcode`\#=12 %
\gdef\href at split$1#$2#$3\\$4{%
- \hyper@@link{$1}{$2}{\uline{$4}}%
+ \hyper@@link{$1}{$2}{%
+ \ifdefined\href at plain$4\else\uline{$4}\fi}%
\endgroup%
}%
-\endgroup\makeatother
+\endgroup%
+\makeatother%
% \end{macrocode}
% \end{macro}
Modified: trunk/Master/texmf-dist/source/latex/href-ul/href-ul.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/href-ul/href-ul.ins 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/source/latex/href-ul/href-ul.ins 2024-01-09 21:07:44 UTC (rev 69359)
@@ -1,6 +1,6 @@
%% (The MIT License)
%%
-%% Copyright (c) 2021-2022 Yegor Bugayenko
+%% Copyright (c) 2021-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -26,7 +26,7 @@
\preamble
(The MIT License)
-Copyright (c) 2021-2022 Yegor Bugayenko
+Copyright (c) 2021-2024 Yegor Bugayenko
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the 'Software'), to deal
Modified: trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty 2024-01-09 21:07:34 UTC (rev 69358)
+++ trunk/Master/texmf-dist/tex/latex/href-ul/href-ul.sty 2024-01-09 21:07:44 UTC (rev 69359)
@@ -7,7 +7,7 @@
%% href-ul.dtx (with options: `package')
%% (The MIT License)
%%
-%% Copyright (c) 2021-2022 Yegor Bugayenko
+%% Copyright (c) 2021-2024 Yegor Bugayenko
%%
%% Permission is hereby granted, free of charge, to any person obtaining a copy
%% of this software and associated documentation files (the 'Software'), to deal
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{href-ul}
-[31.10.20220 0.3.0 Underlined Hyperlinks]
+[09.01.20240 0.4.0 Underlined Hyperlinks]
@@ -38,19 +38,35 @@
+
+\RequirePackage{pgfopts}
+\pgfkeys{
+ /href/.cd,
+ plain/.store in=\href at plain
+}
+\ProcessPgfPackageOptions{/href}
+
+\makeatletter
+\ifdefined\href at plain\else
\PassOptionsToPackage{normalem}{ulem}
\RequirePackage{ulem}
+\fi
+\makeatother
+
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
-\makeatletter\begingroup%
+\makeatletter%
+\begingroup%
\catcode`\$=6 %
\catcode`\#=12 %
\gdef\href at split$1#$2#$3\\$4{%
- \hyper@@link{$1}{$2}{\uline{$4}}%
+ \hyper@@link{$1}{$2}{%
+ \ifdefined\href at plain$4\else\uline{$4}\fi}%
\endgroup%
}%
-\endgroup\makeatother
+\endgroup%
+\makeatother%
\endinput
More information about the tex-live-commits
mailing list.