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.sty34
1 files changed, 32 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/doclicense/doclicense.sty b/Master/texmf-dist/tex/latex/doclicense/doclicense.sty
index 87e2643d043..d16ba96ee6f 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}
- [2018/06/10 v1.8.0 Support for putting documents under a license]
+ [2019/04/07 v1.9.0 Support for putting documents under a license]
%% ^^A nag warned about the center environment and it really messes up spacing.
%% Parameters (((
@@ -24,6 +24,16 @@
\RequirePackage{etoolbox} %% \ifcsdef
\RequirePackage{xspace}
\RequirePackage{verbatim}
+\RequirePackage{enumitem}
+
+%% \setlistdepth{4} seems not to be needed. Try without it to avoid changing global variables.
+%% Enumeration scheme was chosen to match the html page once.
+\newlist{doclicense@enumerate}{enumerate}{4}
+\setlist[doclicense@enumerate,1]{label = (\alph*)}
+\setlist[doclicense@enumerate,2]{label = (\arabic*)}
+\setlist[doclicense@enumerate,3]{label = (\Alph*)}
+\setlist[doclicense@enumerate,4]{label = (\roman*)}
+
\ifthenelse{
\equal{\doclicense@hyphenation}{}
}{}{%
@@ -35,7 +45,27 @@
}
}
\AtEndPreamble{%
- \@ifpackageloaded{csquotes}{}{\RequirePackage{csquotes}}
+ \@ifpackageloaded{csquotes}{
+ %% csquotes has already been loaded so we are fine.
+ }{
+ \ifcsdef{enquote}{
+ %% \enquote is defined but not by csquotes.
+ \@ifpackageloaded{biblatex}{
+ \PackageError{doclicense}{The enquote macro is defined by biblatex}
+ {This package assumes that the enquote macro is defined by the
+ csquotes package. Please load csquotes before you load biblatex so
+ that biblatex does not define enquote instead.}%
+ }{
+ \PackageError{doclicense}{The enquote macro is defined by unknown package}
+ {This package assumes that the enquote macro is defined by the
+ csquotes package. Please check why enquote is defined without
+ csquotes being loaded. Maybe try loading csquotes early so that it
+ can define the enquote macro instead.}%
+ }
+ }{
+ \RequirePackage{csquotes}
+ }
+ }
\@ifpackageloaded{ccicons}{}{\RequirePackage{ccicons}}
%% For \doclicenseIcon
\@ifpackageloaded{graphicx}{}{\RequirePackage{graphicx}}