diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/href-ul/README.md | 27 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/href-ul/href-ul.pdf | bin | 0 -> 49130 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/href-ul/href-ul.tex | 70 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/href-ul/href-ul.sty | 40 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/href-ul.tlpsrc | 2 |
8 files changed, 143 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt b/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt new file mode 100644 index 00000000000..ba572a3763d --- /dev/null +++ b/Master/texmf-dist/doc/latex/href-ul/DEPENDS.txt @@ -0,0 +1,2 @@ +hard ulem +hard hyperref diff --git a/Master/texmf-dist/doc/latex/href-ul/README.md b/Master/texmf-dist/doc/latex/href-ul/README.md new file mode 100644 index 00000000000..67b18d010e7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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/Master/texmf-dist/doc/latex/href-ul/href-ul.pdf b/Master/texmf-dist/doc/latex/href-ul/href-ul.pdf Binary files differnew file mode 100644 index 00000000000..f480b994d38 --- /dev/null +++ b/Master/texmf-dist/doc/latex/href-ul/href-ul.pdf diff --git a/Master/texmf-dist/doc/latex/href-ul/href-ul.tex b/Master/texmf-dist/doc/latex/href-ul/href-ul.tex new file mode 100644 index 00000000000..3f60b3f3ea5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/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 diff --git a/Master/texmf-dist/tex/latex/href-ul/href-ul.sty b/Master/texmf-dist/tex/latex/href-ul/href-ul.sty new file mode 100644 index 00000000000..570f4ca51ad --- /dev/null +++ b/Master/texmf-dist/tex/latex/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/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 237f413fa1a..734539fa2b1 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -387,7 +387,7 @@ my @TLP_working = qw( hitszthesis hitszbeamer hithesis hletter hlist hmtrump hobby hobete hobsub hologo hook-pre-commit-pkg hopatch horoscop - hpsdiss hrefhide hrlatex + hpsdiss href-ul hrefhide hrlatex hu-berlin-bundle huawei hulipsum hustthesis hvarabic hvfloat hvindex hvqrurl hycolor hypdestopt hypdvips hyper hyperbar hypernat hyperref hyperxmp hyph-utf8 hyphen-base diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index ad2cfe0399d..d786e9e9877 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -606,6 +606,7 @@ depend hitreport depend hletter depend hobsub depend hpsdiss +depend href-ul depend hrefhide depend huawei depend hvindex diff --git a/Master/tlpkg/tlpsrc/href-ul.tlpsrc b/Master/tlpkg/tlpsrc/href-ul.tlpsrc new file mode 100644 index 00000000000..653d0c58ad7 --- /dev/null +++ b/Master/tlpkg/tlpsrc/href-ul.tlpsrc @@ -0,0 +1,2 @@ +depend ulem +depend hyperref |