summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-09-19 20:57:44 +0000
committerKarl Berry <karl@freefriends.org>2020-09-19 20:57:44 +0000
commit43707599ac82868750fc6aeb667724d3204259cc (patch)
tree71c01ed02070c81c3e4a131929ee869944d28333 /Master/texmf-dist/tex/latex/doclicense/doclicense.sty
parent8c0152fb7c1d8d1e211a45b3f9b320f5067cabd8 (diff)
doclicense (18sep20)
git-svn-id: svn://tug.org/texlive/trunk@56379 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.sty12
1 files changed, 9 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 78ad4ab1163..97315fc7100 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/07/26 v2.1.0 Support for putting documents under a license]
+ [2020/09/18 v2.2.1.dev Support for putting documents under a license]
%% ^^A nag warned about the center environment and it really messes up spacing.
@@ -74,13 +74,19 @@
\@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}
%% For \doclicenseImage
\@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}}
- \@ifpackageloaded{hyperxmp}{%
+ \IfFileExists{hyperxmp.sty}{
+ \@ifpackageloaded{hyperxmp}{}{\RequirePackage{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
+ }
+ }
}
%% )))