summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-31 21:52:48 +0000
committerKarl Berry <karl@freefriends.org>2015-03-31 21:52:48 +0000
commitdee0a84614e3bfa877b2803b5743a5a2fc15609e (patch)
tree3c4152b8f483500d4f514c593ade432383d3235a /Master/texmf-dist/tex
parent6e7940cadccde3afc75ffe8951f0de8343e9d341 (diff)
doclicense (31mar15)
git-svn-id: svn://tug.org/texlive/trunk@36691 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r--Master/texmf-dist/tex/latex/doclicense/doclicense.sty17
1 files changed, 10 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index e1efe595bd8..69f8a1b0577 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/02/13 v0.10 Set and print the license of a document]
+ [2015/03/30 v1.0 Support for putting documents under a license]
%% Dependencies {{{
\RequirePackage{kvoptions}
@@ -42,7 +42,7 @@
\newlength{\doclicense@hsize}
\newcommand{\doclicense@longName}{%
\@nameuse{doclicense@lang@lic@\doclicense@type @\doclicense@modifier%
- @\doclicense@versionUsed}
+ @\doclicense@versionUsed}%
}
\newcommand{\doclicense@icon}{%
\PackageError{doclicense}{Icon not defined}
@@ -56,18 +56,19 @@
\newcommand{\doclicenseModifier}{\MakeUppercase{\doclicense@modifier}\xspace}
\newcommand{\doclicenseVersion}{\doclicense@versionUsed\xspace}
\newcommand{\doclicenseName}{%
- \doclicense@type~\doclicense@modifier~\doclicense@versionUsed\xspace}
+ \doclicense@type~\doclicense@modifier~\doclicense@versionUsed\xspace%
+}
\newcommand{\doclicenseNameRef}{\href{\doclicenseURL}{\doclicenseName}\xspace}
\newcommand{\doclicenseLongName}{\doclicenseLongType\space\doclicense@longName\xspace}
\newcommand{\doclicenseLongNameRef}{\href{\doclicenseURL}{\doclicenseLongName}}
\newcommand{\doclicenseText}{%
\doclicense@lang@thisDoc\space
- \href{\doclicenseURL}{\enquote{\doclicenseName}} \doclicense@lang@word@license.\xspace
+ \href{\doclicenseURL}{\enquote{\doclicenseName{}}} \doclicense@lang@word@license.\xspace%
}
\newcommand{\doclicenseLongText}{%
\doclicense@lang@thisDoc\space
\href{\doclicenseURL}{\doclicenseLongType\space\enquote{\doclicense@longName}}
- \doclicense@lang@word@license.\xspace
+ \doclicense@lang@word@license.\xspace%
}
\newcommand{\doclicenseIcon}{\doclicense@icon\xspace}
\newcommand{\doclicenseImage}[1][]{%
@@ -81,8 +82,10 @@
\newcommand{\doclicenseLicense}{\doclicenseThis} %% legacy support
\newcommand{\doclicenseThis}{
\setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em}
- \ifthenelse{\lengthtest{\hsize > \vsize}}{%% landscape
- \setlength{\doclicense@hsize}{\doclicense@hsize-10em}
+ \ifthenelse{\isnamedefined{iflandscape}}{
+ \iflandscape{
+ \setlength{\doclicense@hsize}{\doclicense@hsize-10em}
+ }{}
}{}
\begin{center}
\begin{minipage}{\doclicense@hsize}