summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/href-ul
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-01-09 21:07:44 +0000
committerKarl Berry <karl@freefriends.org>2024-01-09 21:07:44 +0000
commitc7282435cd999572e255e6d6d7f0499b71269475 (patch)
tree41e70a88d4bcbd6930546210f0f33b8ff382e99f /Master/texmf-dist/tex/latex/href-ul
parent9c4f627805aa2fab14ddb10039400aaae8a56e64 (diff)
href-ul (9jan24)
git-svn-id: svn://tug.org/texlive/trunk@69359 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/href-ul')
-rw-r--r--Master/texmf-dist/tex/latex/href-ul/href-ul.sty26
1 files changed, 21 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/href-ul/href-ul.sty b/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
index 64ba34977d1..0b350fcda47 100644
--- a/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
+++ b/Master/texmf-dist/tex/latex/href-ul/href-ul.sty
@@ -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,26 +31,42 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{href-ul}
-[31.10.20220 0.3.0 Underlined Hyperlinks]
+[09.01.20240 0.4.0 Underlined Hyperlinks]
+
+\RequirePackage{pgfopts}
+\pgfkeys{
+ /href/.cd,
+ plain/.store in=\href@plain
+}
+\ProcessPgfPackageOptions{/href}
+
+\makeatletter
+\ifdefined\href@plain\else
\PassOptionsToPackage{normalem}{ulem}
\RequirePackage{ulem}
+\fi
+\makeatother
+
\PassOptionsToPackage{hidelinks}{hyperref}
\RequirePackage{hyperref}
-\makeatletter\begingroup%
+\makeatletter%
+\begingroup%
\catcode`\$=6 %
\catcode`\#=12 %
\gdef\href@split$1#$2#$3\\$4{%
- \hyper@@link{$1}{$2}{\uline{$4}}%
+ \hyper@@link{$1}{$2}{%
+ \ifdefined\href@plain$4\else\uline{$4}\fi}%
\endgroup%
}%
-\endgroup\makeatother
+\endgroup%
+\makeatother%
\endinput