diff options
author | Karl Berry <karl@freefriends.org> | 2019-04-08 19:59:08 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-04-08 19:59:08 +0000 |
commit | 2d518a8cb09c697d3ca35a1798086ea2a7805d7d (patch) | |
tree | f768353bf64306eedc7569ba62b022144da51e8c /Master/texmf-dist/tex/latex/doclicense/doclicense.sty | |
parent | 72d8dd917c527884931b7adc7b5aee5b2b4cc54f (diff) |
doclicense (8apr19)
git-svn-id: svn://tug.org/texlive/trunk@50871 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.sty | 34 |
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}} |