summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/href-ul
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
committerNorbert Preining <norbert@preining.info>2021-06-14 03:01:12 +0000
commit269940e8e52b921a855083542b9e1109af49af09 (patch)
treeba8b7431f6e4878661215e5a6127aba941f5d711 /macros/latex/contrib/href-ul
parent2ba4b1ac7860085c0b259aacb0d99bd2c730edbc (diff)
CTAN sync 202106140301
Diffstat (limited to 'macros/latex/contrib/href-ul')
-rw-r--r--macros/latex/contrib/href-ul/DEPENDS.txt2
-rw-r--r--macros/latex/contrib/href-ul/README.md27
-rw-r--r--macros/latex/contrib/href-ul/href-ul.pdfbin0 -> 49130 bytes
-rw-r--r--macros/latex/contrib/href-ul/href-ul.sty40
-rw-r--r--macros/latex/contrib/href-ul/href-ul.tex70
5 files changed, 139 insertions, 0 deletions
diff --git a/macros/latex/contrib/href-ul/DEPENDS.txt b/macros/latex/contrib/href-ul/DEPENDS.txt
new file mode 100644
index 0000000000..ba572a3763
--- /dev/null
+++ b/macros/latex/contrib/href-ul/DEPENDS.txt
@@ -0,0 +1,2 @@
+hard ulem
+hard hyperref
diff --git a/macros/latex/contrib/href-ul/README.md b/macros/latex/contrib/href-ul/README.md
new file mode 100644
index 0000000000..67b18d010e
--- /dev/null
+++ b/macros/latex/contrib/href-ul/README.md
@@ -0,0 +1,27 @@
+[![make](https://github.com/yegor256/href-ul/actions/workflows/make.yml/badge.svg)](https://github.com/yegor256/href-ul/actions/workflows/make.yml)
+[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/href-ul/blob/master/LICENSE.txt)
+
+This LaTeX package makes hyperlinks underscored.
+The package uses [`hyperref`](https://ctan.org/pkg/hyperref)
+and [`ulem`](https://ctan.org/pkg/ulem) packages.
+
+First, [install it](https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages)
+from [CTAN](https://ctan.org/pkg/href-ul)
+and then use in the preamble:
+
+```tex
+\documentclass{article}
+\usepackage{href-ul}
+\begin{document}
+Go to \href{https://www.google.com}{Google}!
+\end{document}
+```
+
+The full example and all commands are available in the
+[`href-ul.tex`](https://github.com/yegor256/href/blob/master/href-ul.tex) file.
+
+If you want to contribute yourself, make a fork, then create a branch,
+then run `make` in the root directory.
+It should compile everything without errors. If not, submit an issue and wait.
+Otherwise, make your changes and then run `make` again. If the build is
+still clean, submit a pull request.
diff --git a/macros/latex/contrib/href-ul/href-ul.pdf b/macros/latex/contrib/href-ul/href-ul.pdf
new file mode 100644
index 0000000000..f480b994d3
--- /dev/null
+++ b/macros/latex/contrib/href-ul/href-ul.pdf
Binary files differ
diff --git a/macros/latex/contrib/href-ul/href-ul.sty b/macros/latex/contrib/href-ul/href-ul.sty
new file mode 100644
index 0000000000..570f4ca51a
--- /dev/null
+++ b/macros/latex/contrib/href-ul/href-ul.sty
@@ -0,0 +1,40 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 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
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all
+% copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+% SOFTWARE.
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{href-ul}[2021/06/13 0.1.0 Underscored Hyperlinks]
+
+\PassOptionsToPackage{normalem}{ulem}
+\RequirePackage{ulem}
+\PassOptionsToPackage{hidelinks}{hyperref}
+\RequirePackage{hyperref}
+
+\makeatletter\begingroup%
+\catcode`\$=6 %
+\catcode`\#=12 %
+\gdef\href@split$1#$2#$3\\$4{%
+ \hyper@@link{$1}{$2}{\uline{$4}}%
+ \endgroup%
+}%
+\endgroup\makeatother
+
+\endinput
diff --git a/macros/latex/contrib/href-ul/href-ul.tex b/macros/latex/contrib/href-ul/href-ul.tex
new file mode 100644
index 0000000000..3f60b3f3ea
--- /dev/null
+++ b/macros/latex/contrib/href-ul/href-ul.tex
@@ -0,0 +1,70 @@
+% (The MIT License)
+%
+% Copyright (c) 2021 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
+% in the Software without restriction, including without limitation the rights
+% to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+% copies of the Software, and to permit persons to whom the Software is
+% furnished to do so, subject to the following conditions:
+%
+% The above copyright notice and this permission notice shall be included in all
+% copies or substantial portions of the Software.
+%
+% THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+% IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+% FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+% AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+% LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+% OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+% SOFTWARE.
+
+\documentclass[12pt]{article}
+\usepackage{href-ul} % the package from the current dir
+\usepackage{ffcode}
+\usepackage{multicol}
+\usepackage{xcolor}
+\title{\ff{href-ul}: \LaTeX{} Package \newline That Makes Underscored Links}
+\author{Yegor Bugayenko}
+\date{0.1.0 2021/06/13}
+
+\begin{document}
+\pagenumbering{gobble}
+\raggedbottom
+\setlength{\parindent}{0pt}
+\setlength{\columnsep}{32pt}
+\setlength{\parskip}{6pt}
+\maketitle
+
+This package helps you make your hyperlinks underscored:
+
+\begin{multicols}{2}
+\setlength{\parskip}{0pt}
+\scriptsize
+\raggedcolumns
+\begin{verbatim}
+\documentclass{article}
+\usepackage{href-ul}
+\begin{document}
+Go to \href{https://google.com}{Google}!
+\end{document}
+\end{verbatim}
+
+\columnbreak
+
+Go to \href{https://google.com}{Google}!
+\end{multicols}
+
+Changing the {\color{red}\href{https://github.com/yegor256/href-ul}{color}} of the text also changes the color of the line.
+
+Changing the {\Large\href{https://github.com/yegor256/href-ul}{size}} of the text doesn't change the width of the line.
+
+The package uses
+\ff{\href{https://ctan.org/pkg/hyperref}{hyperref}}
+and \ff{\href{https://ctan.org/pkg/ulem}{ulem}} packages.
+
+More details about this package you can find
+in the \ff{\href{https://github.com/yegor256/href-ul}{yegor256/href-ul}} GitHub repository.
+
+\end{document} \ No newline at end of file