summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/doclicense
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-26 21:49:09 +0000
committerKarl Berry <karl@freefriends.org>2020-09-26 21:49:09 +0000
commit7d1d163297dfe93c40e0391d5460e929a531c1c5 (patch)
treea4f4f3020b4bdf22aadb46d0737dadfa5e76fa38 /Master/texmf-dist/tex/latex/doclicense
parentdba7c23fa20df52c8da99b1aff79858fb7398f9b (diff)
doclicense (26sep20)
git-svn-id: svn://tug.org/texlive/trunk@56445 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/doclicense')
-rw-r--r--Master/texmf-dist/tex/latex/doclicense/doclicense.sty18
1 files changed, 10 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 97315fc7100..b33f93a854d 100644
--- a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
+++ b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
@@ -1,7 +1,7 @@
%% See file 'doclicense.dtx' for copyright and license.
\NeedsTeXFormat{LaTeX2e}[1998/12/01]
\ProvidesPackage{doclicense}
- [2020/09/18 v2.2.1.dev Support for putting documents under a license]
+ [2020/09/25 v2.2.1 Support for putting documents under a license]
%% ^^A nag warned about the center environment and it really messes up spacing.
@@ -74,18 +74,20 @@
\@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
%% For \doclicenseImage
\@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
- \IfFileExists{hyperxmp.sty}{
- \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
+ \@ifpackageloaded{hyperxmp}{
%% The following options are only defined when the hyperxmp package was loaded.
\hypersetup{
pdfcopyright = {\doclicenseLongText},
pdflicenseurl = {\doclicenseURL},
}
- }{
- \PackageWarning{doclicense}{%
- The hyperxmp package is missing so no license metadata can be embedded
- into the PDF. Consider installing hyperxmp.% chktex 13
- }
+ }{}
+}
+\IfFileExists{hyperxmp.sty}{
+ \@ifpackageloaded{hyperxmp}{}{\RequirePackage{hyperxmp}}
+}{
+ \PackageWarning{doclicense}{%
+ The hyperxmp package is missing so no license metadata can be embedded
+ into the PDF. Consider installing hyperxmp.% chktex 13
}
}
%% )))