diff options
author | Karl Berry <karl@freefriends.org> | 2015-08-05 20:13:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-08-05 20:13:51 +0000 |
commit | a4b78f0fc9446d2cfae36e0d82ef6a80d3e5f039 (patch) | |
tree | 9d463d2c7b4a5ad120a33882a9a8f50825948666 | |
parent | 75407eb95e7f8d1a86497cb63ac3c30e8f48904f (diff) |
doclicense (5aug15)
git-svn-id: svn://tug.org/texlive/trunk@38049 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/doclicense/README | 8 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/doclicense/doclicense.pdf | bin | 299374 -> 301242 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/doclicense/doclicense.dtx | 42 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/doclicense/doclicense-acadian.ldf | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/doclicense/doclicense-canadien.ldf | 3 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/doclicense/doclicense-french.ldf | 28 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/doclicense/doclicense.sty | 21 |
7 files changed, 83 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/doclicense/README b/Master/texmf-dist/doc/latex/doclicense/README index 2b5f510d795..222f8c93107 100644 --- a/Master/texmf-dist/doc/latex/doclicense/README +++ b/Master/texmf-dist/doc/latex/doclicense/README @@ -17,7 +17,7 @@ Question on Stackexchange: https://tex.stackexchange.com/a/226788/32320 DESCRIPTION -Make it easy to set your documents under a certain license. +Support for putting documents under a license. The doclicense package allows you to put your document under a license and include a link to read about the license or include an icon or image of the license. @@ -34,3 +34,9 @@ makeindex -s gind doclicense pdflatex doclicense.dtx thumbpdf doclicense pdflatex doclicense.dtx + + IMPORTANT NOTES FOR REGARDING TDS + +Please note that the images/ subdirectory must end up in the runtime tex/ +subtree (that is tex/latex/doclicense/) for the \doclicenseImage macro to work +correctly. diff --git a/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf b/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf Binary files differindex b19bc568c81..c66e6a62b2a 100644 --- a/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf +++ b/Master/texmf-dist/doc/latex/doclicense/doclicense.pdf diff --git a/Master/texmf-dist/source/latex/doclicense/doclicense.dtx b/Master/texmf-dist/source/latex/doclicense/doclicense.dtx index e75464b7613..6d80ce8cfa1 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/05/16 v1.2 Support for putting documents under a license] + [2015/08/04 v1.3 Support for putting documents under a license] %</package> % %<*driver> @@ -115,6 +115,9 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \changes{1.0}{2015/03/30}{Removed space before quotes (Example: \enquote{CC } $\rightarrow$ \enquote{CC})} % \changes{1.1}{2015/04/06}{Added support for Creative Commons 4.0 and added \cmd{\doclicenseImageFileName}} % \changes{1.2}{2015/04/06}{Allow \cmd{\doclicenseModifier} to be used with hyperref. Fixed \cmd{\doclicenseIcon} macro, added missing image and wrote test framework. Added notes about how to add translations. Added Spanish translation.} +% \changes{1.3}{2015/08/04}{Added \cmd{\doclicenseTypeIcon} macro. Added French translation. Added note about target images/ subtree.} +% +% %% nag warned about the center environment and it really messes up spacing. % % \DoNotIndex{\RequirePackage, \DeclareOption, \ProcessOptions} % \DoNotIndex{\PackageWarning, \MessageBreak} @@ -134,7 +137,7 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \phantomsection % \addcontentsline{toc}{section}{\abstractname} % \begin{abstract} -% Make it easy to set your documents under a certain license. \\ +% Support for putting documents under a license. \\ % Information site on CTAN: \url{\PackageCTANURL} \\ % Example on Stackexchange: \url{https://tex.stackexchange.com/a/226788/32320} \\ % Fork me on GitHub: \url{\PackageURL} \end{abstract} @@ -203,9 +206,11 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \PrintPackage{babel} or \PrintPackage{polyglossia}. % % Supported languages: +% ^^A Sorted alphabetically. % \begin{eqlist} % \item[English] Added by \href{https://github.com/ypid}{Robin Schneider}. -% \item[German] Added by \href{https://github.com/ypid}{Robin Schneider}. +% \item[French] Added by \href{https://github.com/ericguirbal}{\'Eric Guirbal}. +% \item[German] Added by \href{https://github.com/ypid}{Robin Schneider}. % \item[Spanish] Added by \href{https://github.com/elsudano}{Carlos}. % \end{eqlist} % @@ -224,7 +229,7 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % |]{doclicense}| % \end{quote} % -% Note that if German is set as language then \enquote{-eu} will be used as +% Note that if French or German is set as language then \enquote{-eu} will be used as % default for this option. % % Currently supported are \enquote{-eu} and \enquote{-us}. @@ -280,6 +285,11 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % \enquote{\doclicenseIcon{}}. This macro is based on the % \PrintPackage{ccicons} package. % +% \DescribeMacro{\doclicenseTypeIcon} +% Expands to a icon of the license type. Example: +% \enquote{\doclicenseTypeIcon{}}. This macro is based on the +% \PrintPackage{ccicons} package. +% % \DescribeMacro{\doclicenseImage} % This is kind of similar with \cmd{\doclicenseIcon} but it will typeset an % bigger pictogram of the license. Example: @@ -347,10 +357,10 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} % the filename with your language code (same as the language code used by % \PrintPackage{babel}) and translate the file. % If there are multiple language -% codes which should map to same translation then have a look at the file +% codes which should map to the same translation then have a look at the file % \path{doclicense-american.ldf}. % -% When you are done and tested your translation (modify and run the +% When you are done and have tested your translation (modify and run the % \path{run_tests} script) then please send me the translated file(s) either % via Email or preferably by opening a pull request on GitHub so that I can % include them in the next release. @@ -450,6 +460,8 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} \doclicense@lang@word@license.\xspace% } \newcommand{\doclicenseIcon}{\doclicense@icon\xspace} +\newcommand{\doclicenseTypeIcon}{\doclicenseType} +% \newcommand{\doclicenseModifierIcon}{} %% Not directly provided by ccicons. \newcommand{\doclicenseImageFileName}{doclicense-\doclicense@type-\doclicense@modifier\doclicense@imagemodifier} \newcommand{\doclicenseImage}[1][]{% \setkeys{doclicense}{#1} @@ -461,13 +473,15 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} } \newcommand{\doclicenseLicense}{\doclicenseThis} %% legacy support -\newcommand{\doclicenseThis}{ - \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em} - \ifthenelse{\isnamedefined{iflandscape}}{ - \iflandscape{ - \setlength{\doclicense@hsize}{\doclicense@hsize-10em} - }{} - }{} +\newcommand{\doclicenseThis}{% + \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em}% + \ifthenelse{\isnamedefined{iflandscape}}{% + \iflandscape{% + % \setlength{\doclicense@hsize}{\doclicense@hsize-10em}% + }{}% + }{}% + % {% + % \centering% \begin{center} \begin{minipage}{\doclicense@hsize} \doclicenseLongText% @@ -477,6 +491,7 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} \doclicenseImage% \end{minipage} \end{center} + % } } %% ))) @@ -522,6 +537,7 @@ corresponds to \PackageName~\fileversion, dated \filedate.}} %% CC ((( \ifthenelse{\equal{\doclicense@type}{CC}}{% \renewcommand{\doclicenseLongType}{Creative Commons\xspace} + \renewcommand{\doclicenseTypeIcon}{\ccLogo\xspace} \doclicense@setVersion[3.0] diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense-acadian.ldf b/Master/texmf-dist/tex/latex/doclicense/doclicense-acadian.ldf new file mode 100644 index 00000000000..7301dfa4ac4 --- /dev/null +++ b/Master/texmf-dist/tex/latex/doclicense/doclicense-acadian.ldf @@ -0,0 +1,3 @@ +\ProvidesFile{doclicense-acadian.ldf} + +\input{doclicense-french.ldf} diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense-canadien.ldf b/Master/texmf-dist/tex/latex/doclicense/doclicense-canadien.ldf new file mode 100644 index 00000000000..fc5484c8d8e --- /dev/null +++ b/Master/texmf-dist/tex/latex/doclicense/doclicense-canadien.ldf @@ -0,0 +1,3 @@ +\ProvidesFile{doclicense-canadien.ldf} + +\input{doclicense-french.ldf} diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense-french.ldf b/Master/texmf-dist/tex/latex/doclicense/doclicense-french.ldf new file mode 100644 index 00000000000..03ee1f2db09 --- /dev/null +++ b/Master/texmf-dist/tex/latex/doclicense/doclicense-french.ldf @@ -0,0 +1,28 @@ +\ProvidesFile{doclicense-french.ldf} + +\ifthenelse{\equal{\doclicense@lang}{french} \AND \equal{\doclicense@imagemodifier}{}}{% + \@namedef{doclicense@imagemodifier}{-eu} +}{} + +\@namedef{doclicense@lang@thisDoc}{Ce document est mis \`a disposition selon les termes de la licence}% +\@namedef{doclicense@lang@word@license}{}% + +\@namedef{doclicense@lang@lic@CC@code}{fr}% +%% Using: https://en.wikipedia.org/wiki/ISO_639-1 + +\@namedef{doclicense@lang@lic@CC@zero@1.0}{CC0 1.0 Universel}% +\@namedef{doclicense@lang@lic@CC@pd@1.0}{Copyright-Only Dedication}% + +\@namedef{doclicense@lang@lic@CC@by@3.0}{Attribution 3.0 non transpos\'e}% +\@namedef{doclicense@lang@lic@CC@by-sa@3.0}{Attribution - Partage dans les m\^emes conditions 3.0 non transpos\'e}% +\@namedef{doclicense@lang@lic@CC@by-nd@3.0}{Attribution - Pas de modification 3.0 non transpos\'e}% +\@namedef{doclicense@lang@lic@CC@by-nc@3.0}{Attribution - Pas d'utilisation commerciale 3.0 non transpos\'e}% +\@namedef{doclicense@lang@lic@CC@by-nc-sa@3.0}{Attribution - Pas d'utilisation commerciale - Partage dans les m\^emes conditions 3.0 non transpos\'e}% +\@namedef{doclicense@lang@lic@CC@by-nc-nd@3.0}{Attribution - Pas d'utilisation commerciale - Pas de modification 3.0 non transpos\'e}% + +\@namedef{doclicense@lang@lic@CC@by@4.0}{Attribution 4.0 International}% +\@namedef{doclicense@lang@lic@CC@by-sa@4.0}{Attribution - Partage dans les m\^emes conditions 4.0 International}% +\@namedef{doclicense@lang@lic@CC@by-nd@4.0}{Attribution - Pas de modification 4.0 International}% +\@namedef{doclicense@lang@lic@CC@by-nc@4.0}{Attribution - Pas d'utilisation commerciale 4.0 International}% +\@namedef{doclicense@lang@lic@CC@by-nc-sa@4.0}{Attribution - Pas d'utilisation commerciale - Partage dans les m\^emes conditions 4.0 International}% +\@namedef{doclicense@lang@lic@CC@by-nc-nd@4.0}{Attribution - Pas d'utilisation commerciale 4.0 International}% diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty index 05c9f05edc1..2615aae406d 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} - [2015/05/16 v1.2 Support for putting documents under a license] + [2015/08/04 v1.3 Support for putting documents under a license] %% Dependencies ((( \RequirePackage{kvoptions} @@ -73,6 +73,7 @@ \doclicense@lang@word@license.\xspace% } \newcommand{\doclicenseIcon}{\doclicense@icon\xspace} +\newcommand{\doclicenseTypeIcon}{\doclicenseType} \newcommand{\doclicenseImageFileName}{doclicense-\doclicense@type-\doclicense@modifier\doclicense@imagemodifier} \newcommand{\doclicenseImage}[1][]{% \setkeys{doclicense}{#1} @@ -84,13 +85,15 @@ } \newcommand{\doclicenseLicense}{\doclicenseThis} %% legacy support -\newcommand{\doclicenseThis}{ - \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em} - \ifthenelse{\isnamedefined{iflandscape}}{ - \iflandscape{ - \setlength{\doclicense@hsize}{\doclicense@hsize-10em} - }{} - }{} +\newcommand{\doclicenseThis}{% + \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em}% + \ifthenelse{\isnamedefined{iflandscape}}{% + \iflandscape{% + % \setlength{\doclicense@hsize}{\doclicense@hsize-10em}% + }{}% + }{}% + % {% + % \centering% \begin{center} \begin{minipage}{\doclicense@hsize} \doclicenseLongText% @@ -100,6 +103,7 @@ \doclicenseImage% \end{minipage} \end{center} + % } } %% ))) @@ -136,6 +140,7 @@ %% CC ((( \ifthenelse{\equal{\doclicense@type}{CC}}{% \renewcommand{\doclicenseLongType}{Creative Commons\xspace} + \renewcommand{\doclicenseTypeIcon}{\ccLogo\xspace} \doclicense@setVersion[3.0] |