summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-04-28 20:23:49 +0000
committerKarl Berry <karl@freefriends.org>2022-04-28 20:23:49 +0000
commite79a9f7c42bfec55e6709a83a955658b05357aca (patch)
treeb264ab18a7bc36180355f41c5ba297514a136f5f /Master/texmf-dist/tex/latex/doclicense/doclicense.sty
parent1d30e8b2253c6e3894e15f2fdccee8f2bb19146d (diff)
doclicense (28apr22)
git-svn-id: svn://tug.org/texlive/trunk@63167 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/doclicense/doclicense.sty')
-rw-r--r--Master/texmf-dist/tex/latex/doclicense/doclicense.sty11
1 files changed, 8 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 45393bd99f1..ce723991582 100644
--- a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
+++ b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
@@ -1,4 +1,4 @@
-% SPDX-FileCopyrightText: 2015-2021 Robin Schneider <ypid@riseup.net>
+% SPDX-FileCopyrightText: 2015-2022 Robin Schneider <ypid@riseup.net>
%
% SPDX-License-Identifier: LPPL-1.3c
%
@@ -8,7 +8,7 @@
\NeedsTeXFormat{LaTeX2e}[1998/12/01]
\ProvidesPackage{doclicense}
- [2021/07/11 v3.0.0 Support for putting documents under a license]
+ [2022/04/27 v3.1.0 Support for putting documents under a license]
\RequirePackage{kvoptions}
\DeclareStringOption{type}
@@ -78,7 +78,7 @@
\@ifpackageloaded{hyperxmp}{%
% The following options are only defined when the hyperxmp package was loaded.
\hypersetup{%
- pdfcopyright = {\doclicenseLongText},
+ pdfcopyright = {\doclicenseLongTextForHyperref},
pdflicenseurl = {\doclicenseURL},
}
}{}
@@ -190,6 +190,11 @@
\href{\doclicenseURL}{\doclicenseLongType\space\enquote{\doclicense@longName}}%
\doclicense@lang@word@license.\xspace%
}
+\newcommand{\doclicenseLongTextForHyperref}{%
+ \doclicense@lang@thisDoc\space
+ \doclicenseLongType\space"\doclicense@longName"% chktex 18
+ \doclicense@lang@word@license.%
+}
\newcommand{\doclicenseIcon}{\doclicense@icon\xspace}
\newcommand{\doclicenseTypeIcon}{\doclicenseType}
\newcommand{\doclicenseImageFileName}{%