texlive[51025] Master/texmf-dist: nomencl (6may19)

commits+karl at tug.org commits+karl at tug.org
Mon May 6 23:05:51 CEST 2019


Revision: 51025
          http://tug.org/svn/texlive?view=revision&revision=51025
Author:   karl
Date:     2019-05-06 23:05:51 +0200 (Mon, 06 May 2019)
Log Message:
-----------
nomencl (6may19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/nomencl/README
    trunk/Master/texmf-dist/doc/latex/nomencl/nomencl.pdf
    trunk/Master/texmf-dist/doc/latex/nomencl/sample01.pdf
    trunk/Master/texmf-dist/doc/latex/nomencl/sample02.pdf
    trunk/Master/texmf-dist/doc/latex/nomencl/sample03.pdf
    trunk/Master/texmf-dist/doc/latex/nomencl/sample04.pdf
    trunk/Master/texmf-dist/doc/latex/nomencl/sample05.pdf
    trunk/Master/texmf-dist/source/latex/nomencl/nomencl.drv
    trunk/Master/texmf-dist/source/latex/nomencl/nomencl.dtx
    trunk/Master/texmf-dist/tex/latex/nomencl/nomencl.sty

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/nomencl/README	2019-05-06 21:05:39 UTC (rev 51024)
+++ trunk/Master/texmf-dist/doc/latex/nomencl/README	2019-05-06 21:05:51 UTC (rev 51025)
@@ -35,3 +35,5 @@
  v5.1 2019/02/08    Compatibility changes for KOMA-Script
                     Bugs fixes
 
+ v5.2 2019/05/05    More compatibility changes:  tocbasic call
+      		    is now optional
\ No newline at end of file

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/nomencl.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/sample01.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/sample02.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/sample03.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/sample04.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/nomencl/sample05.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/nomencl/nomencl.drv
===================================================================
--- trunk/Master/texmf-dist/source/latex/nomencl/nomencl.drv	2019-05-06 21:05:39 UTC (rev 51024)
+++ trunk/Master/texmf-dist/source/latex/nomencl/nomencl.drv	2019-05-06 21:05:51 UTC (rev 51025)
@@ -16,7 +16,7 @@
 %% version 1.2 of the license, or (at your option) any later version.
 %% 
 \ProvidesFile{nomencl.drv}%
-          [2019/02/08 v5.1 Nomenclature package]
+          [2019/05/05 v5.2 Nomenclature package]
 \documentclass[11pt]{ltxdoc}%
 \RequirePackage{fancyvrb}%
 \RequirePackage{hypdoc}%

Modified: trunk/Master/texmf-dist/source/latex/nomencl/nomencl.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/nomencl/nomencl.dtx	2019-05-06 21:05:39 UTC (rev 51024)
+++ trunk/Master/texmf-dist/source/latex/nomencl/nomencl.dtx	2019-05-06 21:05:51 UTC (rev 51025)
@@ -28,7 +28,7 @@
 %<*package|driver>
 % \fi
 %         \ProvidesFile{nomencl.dtx}%
-          [2019/02/08 v5.1 Nomenclature package]
+          [2019/05/05 v5.2 Nomenclature package]
 %
 % \iffalse
 %</package|driver>
@@ -94,6 +94,7 @@
 % \changes{v4.1 (2005/04/27)}{2005/04/27}{Improvements to the documentation,
 % including hyperref support}
 % \changes{v5.0}{2018/12/28}{Rewrote documentation}
+% \changes{v5.2}{2019/05/05}{New options: tocbasic, notocbasic}
 %
 % \GetFileInfo{nomencl.dtx}
 %
@@ -333,6 +334,11 @@
 % \item[nocfg] The configuration file is not loaded.
 % \item[intoc] Inserts the nomenclature in the Table of Contents.
 % \item[notintoc] No entry for the nomenclature in the Table of Contents. (default)
+% \item[tocbasic] Use \textsl{tocbasic} package from KOMA script
+% bundle for TOC handling (default)
+% \item[notocbasic] Do not use \textsl{tocbasic} package from KOMA
+% script.  You may need this option if \textsl{tocbasic} conflicts
+% with other packages like \textsl{pgfopts}.  
 % \item[compatible] Run in compatibility mode. Older tex files may
 %   need this option selected to be able to compile. In the latest
 %   version of \package{nomencl} the commands |\makeglossary| and
@@ -1059,9 +1065,6 @@
 %    \begin{macrocode}
 \RequirePackage{xkeyval}
 \RequirePackage{ifthen}
-\RequirePackage{tocbasic}
-\addtotoclist[nomencl]{nlo}
-\addtotoclist[nomencl]{nls}
 %    \end{macrocode}
 %
 %
@@ -1086,6 +1089,17 @@
 \newif\if at compatibilitymode
 %    \end{macrocode}
 % \end{macro}
+%
+% \begin{macro}{\if at nomencl@tocbasic}
+% \changes{v5.2}{2019/05/05}{Reintroduced macro}
+% Whether we are to use tocbasic
+%    \begin{macrocode}
+\newif\if at nomencl@tocbasic
+\@nomencl at tocbasictrue
+%    \end{macrocode}
+% 
+% \end{macro}
+%
 % And the options to set these switches globally.
 %    \begin{macrocode}
 \DeclareOptionX{refeq}{\@printeqreftrue}
@@ -1096,6 +1110,8 @@
 \DeclareOptionX{notintoc}{\@intocfalse}
 \DeclareOptionX{compatible}{\@compatibilitymodetrue}
 \DeclareOptionX{noncompatible}{\@compatibilitymodefalse}
+\DeclareOptionX{tocbasic}{\@nomencl at tocbasictrue}
+\DeclareOptionX{notocbasic}{\@nomencl at tocbasicfalse}
 %    \end{macrocode}
 % \begin{macro}{\nomprefix}
 % It might make sense to add the prefix ``a'' to every sortkey, see
@@ -1138,7 +1154,6 @@
 %    \end{macrocode}
 % \end{macro}
 %
-%
 % \begin{macro}{\eqdeclaration}
 % \begin{macro}{\pagedeclaration}
 % \begin{macro}{\nomname}
@@ -1263,7 +1278,7 @@
 % \end{macro}\end{macro}\end{macro}\end{macro}
 % Finally set the default options and process everything.
 %    \begin{macrocode}
-\ExecuteOptionsX{noncompatible,notintoc,norefeq,norefpage,prefix,cfg,english,nostdsubgroups}
+\ExecuteOptionsX{noncompatible,notintoc,norefeq,norefpage,prefix,cfg,english,nostdsubgroups,tocbasic}
 \ProcessOptionsX\relax
 %    \end{macrocode}
 %
@@ -1274,10 +1289,22 @@
 \fi
 %    \end{macrocode}
 %
+% In |tocbasic| mode we need to load \textsl{tocbasic}
+%    \begin{macrocode}
+\if at nomencl@tocbasic
+  \RequirePackage{tocbasic}
+  \addtotoclist[nomencl]{nlo}
+  \addtotoclist[nomencl]{nls}
+\fi
+%    \end{macrocode}
+% 
+%
 % Checking whether we need nomenclature in toc
 %    \begin{macrocode}
 \if at intoc
-\setuptoc{nls}{totoc}
+  \if at nomencl@tocbasic
+    \setuptoc{nls}{totoc}
+  \fi
 \fi
 %    \end{macrocode}
 % 
@@ -1503,7 +1530,8 @@
 % \begin{environment}{thenomenclature}
 %\changes{v5.1}{2019/01/27}{Changed \cs{markboth} to \cs{@mkboth} for
 % chapters}
-%\changes{v5.1}{2019/02/08}{Added tocbasic}
+% \changes{v5.1}{2019/02/08}{Added tocbasic}
+% \changes{v5.2}{2019/05/05}{Made tocbasic optional}
 % The |thenomenclature| environment formats its title and optionally
 % inserts an item in the TOC, both are dependant on
 % whether the \cs{chapter} command is available or not. After
@@ -1517,9 +1545,22 @@
 %    \begin{macrocode}
 \def\thenomenclature{%
   \providecommand*{\listofnlsname}{\nomname}%
-  \let\list at fname\listofnlsname
-  \def\@currext{nls}%
-  \tocbasic at listhead{\list at fname}%
+  \if at nomencl@tocbasic
+    \let\list at fname\listofnlsname
+    \def\@currext{nls}%
+    \tocbasic at listhead{\list at fname}%
+   \else
+    \@ifundefined{chapter}%
+    {
+      \section*{\nomname}
+      \if at intoc\addcontentsline{toc}{section}{\nomname}\fi%
+    }%
+    {
+      \chapter*{\nomname}
+      \@mkboth{\nomname}{\nomname}%
+      \if at intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
+    }%
+  \fi
   \nompreamble
   \if at nomentbl
     \let\itemOrig=\item

Modified: trunk/Master/texmf-dist/tex/latex/nomencl/nomencl.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/nomencl/nomencl.sty	2019-05-06 21:05:39 UTC (rev 51024)
+++ trunk/Master/texmf-dist/tex/latex/nomencl/nomencl.sty	2019-05-06 21:05:51 UTC (rev 51025)
@@ -16,17 +16,16 @@
 %% version 1.2 of the license, or (at your option) any later version.
 %% 
 \ProvidesPackage{nomencl}%
-          [2019/02/08 v5.1 Nomenclature package]
+          [2019/05/05 v5.2 Nomenclature package]
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{xkeyval}
 \RequirePackage{ifthen}
-\RequirePackage{tocbasic}
-\addtotoclist[nomencl]{nlo}
-\addtotoclist[nomencl]{nls}
 \newif\if at printeqref
 \newif\if at printpageref
 \newif\if at intoc
 \newif\if at compatibilitymode
+\newif\if at nomencl@tocbasic
+\@nomencl at tocbasictrue
 \DeclareOptionX{refeq}{\@printeqreftrue}
 \DeclareOptionX{norefeq}{\@printeqreffalse}
 \DeclareOptionX{refpage}{\@printpagereftrue}
@@ -35,6 +34,8 @@
 \DeclareOptionX{notintoc}{\@intocfalse}
 \DeclareOptionX{compatible}{\@compatibilitymodetrue}
 \DeclareOptionX{noncompatible}{\@compatibilitymodefalse}
+\DeclareOptionX{tocbasic}{\@nomencl at tocbasictrue}
+\DeclareOptionX{notocbasic}{\@nomencl at tocbasicfalse}
 \DeclareOptionX{prefix}{\def\nomprefix{a}}
 \DeclareOptionX{noprefix}{\def\nomprefix{}}
 \newif\if at nomentbl
@@ -144,13 +145,20 @@
    \def\nomXname{\CYRV\cyre\cyrr\cyrh\cyrn\cyrii\
      \cyrii\cyrn\cyrd\cyre\cyrk\cyrs\cyri}%
    \def\nomZname{\CYRII\cyrn\cyrd\cyre\cyrk\cyrs\cyri}}
-\ExecuteOptionsX{noncompatible,notintoc,norefeq,norefpage,prefix,cfg,english,nostdsubgroups}
+\ExecuteOptionsX{noncompatible,notintoc,norefeq,norefpage,prefix,cfg,english,nostdsubgroups,tocbasic}
 \ProcessOptionsX\relax
 \if at nomentbl
 \RequirePackage{array,longtable, siunitx}
 \fi
+\if at nomencl@tocbasic
+  \RequirePackage{tocbasic}
+  \addtotoclist[nomencl]{nlo}
+  \addtotoclist[nomencl]{nls}
+\fi
 \if at intoc
-\setuptoc{nls}{totoc}
+  \if at nomencl@tocbasic
+    \setuptoc{nls}{totoc}
+  \fi
 \fi
 \if at compatibilitymode%
     \def\@outputfileextension{.glo}%
@@ -251,9 +259,22 @@
 \setnomtableformat{lp{0.45\textwidth}sp{0.3\textwidth}@{}l}
 \def\thenomenclature{%
   \providecommand*{\listofnlsname}{\nomname}%
-  \let\list at fname\listofnlsname
-  \def\@currext{nls}%
-  \tocbasic at listhead{\list at fname}%
+  \if at nomencl@tocbasic
+    \let\list at fname\listofnlsname
+    \def\@currext{nls}%
+    \tocbasic at listhead{\list at fname}%
+   \else
+    \@ifundefined{chapter}%
+    {
+      \section*{\nomname}
+      \if at intoc\addcontentsline{toc}{section}{\nomname}\fi%
+    }%
+    {
+      \chapter*{\nomname}
+      \@mkboth{\nomname}{\nomname}%
+      \if at intoc\addcontentsline{toc}{chapter}{\nomname}\fi%
+    }%
+  \fi
   \nompreamble
   \if at nomentbl
     \let\itemOrig=\item



More information about the tex-live-commits mailing list