summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/doclicense
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/doclicense')
-rw-r--r--Master/texmf-dist/source/latex/doclicense/doclicense.dtx25
1 files changed, 15 insertions, 10 deletions
diff --git a/Master/texmf-dist/source/latex/doclicense/doclicense.dtx b/Master/texmf-dist/source/latex/doclicense/doclicense.dtx
index b10b5a82c7d..df2b141bf11 100644
--- a/Master/texmf-dist/source/latex/doclicense/doclicense.dtx
+++ b/Master/texmf-dist/source/latex/doclicense/doclicense.dtx
@@ -27,7 +27,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}[1998/12/01]
%<package>\ProvidesPackage{doclicense}
%<*package>
- [2019/04/07 v1.9.0 Support for putting documents under a license]
+ [2019/06/05 v1.10.0 Support for putting documents under a license]
%</package>
%
%<*driver>
@@ -126,7 +126,8 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \filedate.}}
% \changes{1.7.0}{2018/02/17}{Update Russian and Spanish translation. Fix issue with unescaped newline causing two spaces between license name and 'license' word.}
% \changes{1.7.1}{2018/04/24}{Include .eps versions of the images to allow using `latex` with dvi output. Thanks to robertpetry for reporting.}
% \changes{1.8.0}{2018/06/10}{Added Polish translation.}
-% \changes{1.9.0}{2018/12/20}{Added Catalan, Galician, Chinese and Portuguese translation. Detect and give hint when enquote macro is already defined. Fix LaTeX Error: Too deeply nested.}
+% \changes{1.9.0}{2019/04/07}{Added Catalan, Galician, Chinese and Portuguese translation. Detect and give hint when enquote macro is already defined. Fix LaTeX Error: Too deeply nested.}
+% \changes{1.10.0}{2019/06/05}{Added Brazilian translation. Update Chinese and Portuguese translation. Do not use enumitem for list label customization (beamer compatibility).}
%
%% ^^A nag warned about the center environment and it really messes up spacing.
%
@@ -219,6 +220,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \filedate.}}
% Supported languages:
% ^^A Sorted alphabetically.
% \begin{eqlist}
+% \item[Brazilian] Added by \href{https://github.com/iagows}{Iago}.
% \item[Catalan] Added by \href{https://github.com/elancha98}{Ernesto Lanchares}.
% \item[Chinese] Added by \href{https://github.com/sd44}{sd44}.
% \item[English] Added by \href{https://github.com/ypid}{Robin Schneider}.
@@ -233,6 +235,7 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \filedate.}}
%
%
%
+%
% \end{eqlist}
%
% Image position for \cmd{\doclicenseThis}: right (default) or left.
@@ -503,15 +506,17 @@ corresponds to \PackageName\nobreakspace\fileversion, dated \filedate.}}
\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*)}
+%% Custom enumerate list with adjusted labels
+%% that match the license text convetions
+\newenvironment{doclicense@enumerate}{%
+ \begin{enumerate}
+ \renewcommand{\labelenumi}{(\alph{enumi})}%
+ \renewcommand{\labelenumii}{(\arabic{enumii})}%
+ \renewcommand{\labelenumiii}{(\Alph{enumiii})}%
+ \renewcommand{\labelenumiv}{(\roman{enumiv})}%
+}{\end{enumerate}}
\ifthenelse{
\equal{\doclicense@hyphenation}{}