diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx index 4690b5e1791..7ae270bd46b 100644 --- a/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx +++ b/Master/texmf-dist/source/latex/glossaries-extra/glossaries-extra.dtx @@ -1,17 +1,17 @@ %\iffalse % glossaries-extra.dtx generated using makedtx version 1.2 (c) Nicola Talbot % Command line args: -% -comment ".*\.tex" +% -codetitle "Main Package Code (\\styfmt{glossaries-extra.sty})" +% -author "Nicola Talbot" +% -doc "glossaries-extra-codedoc.tex" +% -macrocode ".*\.tex" % -src "glossaries-extra.sty\Z=>glossaries-extra.sty" % -src "glossaries-extra-stylemods.sty\Z=>glossaries-extra-stylemods.sty" % -src "(example-glossaries-.+\.tex)\Z=>\1" +% -comment ".*\.tex" % -section "chapter" -% -author "Nicola Talbot" -% -macrocode ".*\.tex" -% -codetitle "Main Package Code (\\styfmt{glossaries-extra.sty})" -% -doc "glossaries-extra-codedoc.tex" % glossaries-extra -% Created on 2017/8/9 16:08 +% Created on 2017/8/10 15:55 %\fi %\iffalse %<*package> @@ -161,13 +161,13 @@ governed by the \gloskey{first} and \gloskey{firstplural} keys of \raggedright } -\title{glossaries-extra.sty v1.17: +\title{glossaries-extra.sty v1.18: documented code} \author{Nicola L.C. Talbot\\[10pt] Dickimaw Books\\ \url{http://www.dickimaw-books.com/}} -\date{2017-08-09} +\date{2017-08-10} \begin{document} \DocInput{glossaries-extra.dtx} @@ -212,7 +212,7 @@ Dickimaw Books\\ %\section{Package Initialisation and Options} % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-extra}[2017/08/09 v1.17 (NLCT)] +\ProvidesPackage{glossaries-extra}[2017/08/10 v1.18 (NLCT)] % \end{macrocode} % Requires \sty{xkeyval} to define package options. % \begin{macrocode} @@ -1083,9 +1083,10 @@ Dickimaw Books\\ % %\begin{option}{stylemods} %\changes{1.02}{2016-04-25}{new} +%\changes{1.18}{2017-08-10}{changed default value to \qt{default}} % \begin{macrocode} -\define@key{glossaries-extra.sty}{stylemods}{% - \ifblank{#1}% +\define@key{glossaries-extra.sty}{stylemods}[default]{% + \ifstrequal{#1}{default}% {% \renewcommand*{\@glsxtr@redefstyles}{% \RequirePackage{glossaries-extra-stylemods}}% @@ -1127,6 +1128,9 @@ Dickimaw Books\\ % packages have been loaded. % \begin{macrocode} \define@key{glossaries-extra.sty}{style}{% +% \end{macrocode} +%Defer actual style change: +% \begin{macrocode} \renewcommand*{\@glsxtr@do@style}{% % \end{macrocode} % Set this as the default style: @@ -2815,13 +2819,14 @@ Dickimaw Books\\ \newcommand*{\@glsxtr@current@style}{\@glossary@default@style} % \end{macrocode} %\end{macro} -% Modify \cs{setglossarystyle} to set the above. +% +% Modify \cs{setglossarystyle} to set \cs{@glsxtr@current@style}. %\begin{macro}{\setglossarystyle} % \begin{macrocode} \renewcommand*{\setglossarystyle}[1]{% \ifcsundef{@glsstyle@#1}% {% - \PackageError{glossaries}{Glossary style `#1' undefined}{}% + \PackageError{glossaries-extra}{Glossary style `#1' undefined}{}% }% {% \csname @glsstyle@#1\endcsname @@ -18664,7 +18669,7 @@ Dickimaw Books\\ % First identify package: % \begin{macrocode} \NeedsTeXFormat{LaTeX2e} -\ProvidesPackage{glossaries-extra-stylemods}[2017/08/09 v1.17 (NLCT)] +\ProvidesPackage{glossaries-extra-stylemods}[2017/08/10 v1.18 (NLCT)] % \end{macrocode} % Provide package options to automatically load required predefined % styles. The simplest method is to just test for the existence of @@ -18707,7 +18712,7 @@ Dickimaw Books\\ \providecommand{\renewglossarystyle}[2]{% \ifcsundef{@glsstyle@#1}% {% - \PackageError{glossaries}{Glossary style `#1' isn't already defined}{}% + \PackageError{glossaries-extra}{Glossary style `#1' isn't already defined}{}% }% {% \csdef{@glsstyle@#1}{#2}% |