From a4b78f0fc9446d2cfae36e0d82ef6a80d3e5f039 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Wed, 5 Aug 2015 20:13:51 +0000
Subject: doclicense (5aug15)

git-svn-id: svn://tug.org/texlive/trunk@38049 c570f23f-e606-0410-a88d-b1316a301751
---
 .../texmf-dist/tex/latex/doclicense/doclicense.sty  | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

(limited to 'Master/texmf-dist/tex/latex/doclicense/doclicense.sty')

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]
 
-- 
cgit v1.2.3

