diff options
author | Karl Berry <karl@freefriends.org> | 2015-02-14 22:21:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-02-14 22:21:47 +0000 |
commit | 40c6511c7aad371e280e02fc452115793aa47da0 (patch) | |
tree | 4d12d232ac40dae0aa5a779b778fb6ec1cb721d6 /Master/texmf-dist/source/latex/doclicense | |
parent | dfa471aff8d22b4de7c73b95333c34fcf9e9b9d8 (diff) |
doclicense (14feb15)
git-svn-id: svn://tug.org/texlive/trunk@36276 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/doclicense')
-rw-r--r-- | Master/texmf-dist/source/latex/doclicense/doclicense.dtx | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/Master/texmf-dist/source/latex/doclicense/doclicense.dtx b/Master/texmf-dist/source/latex/doclicense/doclicense.dtx index b73701f25ec..3907c30bcb0 100644 --- a/Master/texmf-dist/source/latex/doclicense/doclicense.dtx +++ b/Master/texmf-dist/source/latex/doclicense/doclicense.dtx @@ -27,7 +27,7 @@ %<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01] %<package>\ProvidesPackage{doclicense} %<*package> - [2015/02/07 v0.9 Set and print the license of a document] + [2015/02/13 v0.10 Set and print the license of a document] %</package> % %<*driver> @@ -48,6 +48,7 @@ csquotes, xcolor, url, + hyperxmp, hypdoc, nameref, xspace, @@ -60,7 +61,7 @@ pdfsubject={\fileinfo}, baseurl={\PackageURL}, pdfkeywords={This document corresponds to \PackageName~\fileversion, - dated \filedate} + dated \filedate}, } \title{The \PackageName{} package\thanks{This document @@ -105,7 +106,8 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \changes{0.7}{2015/02/05}{Initial version} % \changes{0.8}{2015/02/06}{Added support for CC-zero and CC-pd and small improvements} % \changes{0.9}{2015/02/07}{Added list of supported licenses to docu and added option imagemodifier. -% Also renamed macro \cmd{\doclicenseLicense} to \cmd{\doclicenseThis}} % +% Also renamed macro \cmd{\doclicenseLicense} to \cmd{\doclicenseThis}} +% \changes{0.10}{2015/02/13}{Added support for hyperxmp} % % \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions} % \DoNotIndex{\PackageWarning, \MessageBreak} @@ -156,6 +158,12 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \end{quote} % % This will explicitly set the license to \doclicenseNameRef. +% +% If the \PrintPackage{hyperxmp} package is loaded, then the options +% \PrintOptionF{pdflicenseurl} and \PrintOptionF{pdfcopyright} will be set +% by \PrintPackage{doclicense} to the corresponding values +% (\enquote{\url{\doclicenseURL}} and \enquote{\doclicenseLongText{}}). +% % \bigskip % % The first parameter is \enquote{\PrintOptionF{type}}. \DescribePara{type} @@ -273,14 +281,14 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % % \makeatletter % \begin{eqlist} -% \item[by@3.0] \csname doclicense@lang@lic@CC@by@3.0\endcsname -% \item[by-sa@3.0] \csname doclicense@lang@lic@CC@by-sa@3.0\endcsname -% \item[by-nd@3.0] \csname doclicense@lang@lic@CC@by-nd@3.0\endcsname -% \item[by-nc@3.0] \csname doclicense@lang@lic@CC@by-nc@3.0\endcsname -% \item[by-nc-sa@3.0] \csname doclicense@lang@lic@CC@by-nc-sa@3.0\endcsname -% \item[by-nc-nc@3.0] \csname doclicense@lang@lic@CC@by-nc-nd@3.0\endcsname -% \item[zero@1.0] \csname doclicense@lang@lic@CC@zero@1.0\endcsname -% \item[pd@1.0] \csname doclicense@lang@lic@CC@pd@1.0\endcsname +% \item[by@3.0] \@nameuse{doclicense@lang@lic@CC@by@3.0} +% \item[by-sa@3.0] \@nameuse{doclicense@lang@lic@CC@by-sa@3.0} +% \item[by-nd@3.0] \@nameuse{doclicense@lang@lic@CC@by-nd@3.0} +% \item[by-nc@3.0] \@nameuse{doclicense@lang@lic@CC@by-nc@3.0} +% \item[by-nc-sa@3.0] \@nameuse{doclicense@lang@lic@CC@by-nc-sa@3.0} +% \item[by-nc-nc@3.0] \@nameuse{doclicense@lang@lic@CC@by-nc-nd@3.0} +% \item[zero@1.0] \@nameuse{doclicense@lang@lic@CC@zero@1.0} +% \item[pd@1.0] \@nameuse{doclicense@lang@lic@CC@pd@1.0} % \end{eqlist} % \makeatother % @@ -312,6 +320,12 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} \@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}} %% For \doclicenseImage \@ifpackageloaded{hyperref}{}{\RequirePackage{hyperref}} + \@ifpackageloaded{hyperxmp}{% + \hypersetup{ + pdfcopyright = {\doclicenseLongText}, + pdflicenseurl = {\doclicenseURL}, + } + }{} } %% }}} @@ -343,8 +357,8 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} \newboolean{doclicense@licenseKnown} \newlength{\doclicense@hsize} \newcommand{\doclicense@longName}{% - \csname doclicense@lang@lic@\doclicense@type @\doclicense@modifier% - @\doclicense@versionUsed\endcsname + \@nameuse{doclicense@lang@lic@\doclicense@type @\doclicense@modifier% + @\doclicense@versionUsed} } \newcommand{\doclicense@icon}{% \PackageError{doclicense}{Icon not defined} @@ -414,7 +428,7 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} \input{doclicense-\doclicense@lang.ldf} }{% \PackageWarning{doclicense}{% - No language definition for \doclicense@lang not found. + No language definition for \doclicense@lang found. Please add one and submit a patch. Using English as fallback.} \renewcommand{\doclicense@lang}{english} \input{doclicense-\doclicense@lang.ldf} |