summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-07 22:11:56 +0000
committerKarl Berry <karl@freefriends.org>2017-10-07 22:11:56 +0000
commitc394414696e3895403a2f2d599cee160e10d38de (patch)
treeb3fe339c1c58d8d5f029d662563f6032a7a6b4f3 /Master/texmf-dist/tex/latex/doclicense/doclicense.sty
parentd7a1e976ba2e3511e843571a66d950d440be8021 (diff)
doclicense (7oct17)
git-svn-id: svn://tug.org/texlive/trunk@45495 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.sty47
1 files changed, 33 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 380fd9c36a0..f45f4fdc3ed 100644
--- a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
+++ b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
@@ -1,8 +1,10 @@
%% See file 'doclicense.dtx' for copyright and license.
\NeedsTeXFormat{LaTeX2e}[1998/12/01]
\ProvidesPackage{doclicense}
- [2016/04/24 v1.5.0 Support for putting documents under a license]
+ [2017/10/07 v1.6.0 Support for putting documents under a license]
+%% ^^A \changes{1.7.0}{2017/XX/XX}{}
%% ^^A nag warned about the center environment and it really messes up spacing.
+
%% Parameters (((
\RequirePackage{kvoptions}
\DeclareStringOption[CC]{type}
@@ -10,7 +12,9 @@
\DeclareStringOption{version}
\DeclareStringOption{lang}
\DeclareStringOption{imagemodifier}
+\DeclareStringOption[right]{imageposition}
\DeclareStringOption[10em]{imagewidth}
+\DeclareStringOption[2em]{imagedistance}
\DeclareStringOption{hyphenation}
%% )))
@@ -117,26 +121,41 @@
\newcommand{\doclicenseLicense}{\doclicenseThis} %% legacy support
\newcommand{\doclicenseThis}{%
- \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-2em}%
+ \setlength{\doclicense@hsize}{\textwidth-\doclicense@imagewidth-\doclicense@imagedistance}%
+ \ifthenelse{\equal{\doclicense@imageposition}{left}}{%
+ \begin{center}
+ \begin{minipage}{\doclicense@imagewidth}
+ \doclicenseImage%
+ \end{minipage}
+ \hfill
+ \begin{minipage}{\doclicense@hsize}
+ \ifthenelse{\isempty{\doclicense@hyphenation}}{}{%
+ \@nameuse{\doclicense@hyphenation}%
+ }%
+ \doclicenseLongText%
+ \end{minipage}
+ \end{center}
+ }{%
% \ifthenelse{\isnamedefined{iflandscape}}{%
% \iflandscape{%
% \setlength{\doclicense@hsize}{\doclicense@hsize-10em}%
% }{}%
% }{}%
% {%
- \begin{center}
- \begin{minipage}{\doclicense@hsize}
- \ifthenelse{\isempty{\doclicense@hyphenation}}{}{%
- \@nameuse{\doclicense@hyphenation}%
- }%
- \doclicenseLongText%
- \end{minipage}
- \hfill
- \begin{minipage}{\doclicense@imagewidth}
- \doclicenseImage%
- \end{minipage}
- \end{center}
+ \begin{center}
+ \begin{minipage}{\doclicense@hsize}
+ \ifthenelse{\isempty{\doclicense@hyphenation}}{}{%
+ \@nameuse{\doclicense@hyphenation}%
+ }%
+ \doclicenseLongText%
+ \end{minipage}
+ \hfill
+ \begin{minipage}{\doclicense@imagewidth}
+ \doclicenseImage%
+ \end{minipage}
+ \end{center}
% }
+ }
}
%% )))