summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
diff options
context:
space:
mode:
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}
% }
+ }
}
%% )))