texlive[50536] Master/texmf-dist: tocdata (22mar19)

commits+karl at tug.org commits+karl at tug.org
Fri Mar 22 21:50:31 CET 2019


Revision: 50536
          http://tug.org/svn/texlive?view=revision&revision=50536
Author:   karl
Date:     2019-03-22 21:50:30 +0100 (Fri, 22 Mar 2019)
Log Message:
-----------
tocdata (22mar19)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/tocdata/README.txt
    trunk/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf
    trunk/Master/texmf-dist/source/latex/tocdata/tocdata.dtx
    trunk/Master/texmf-dist/tex/latex/tocdata/tocdata.sty

Modified: trunk/Master/texmf-dist/doc/latex/tocdata/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/tocdata/README.txt	2019-03-22 20:50:19 UTC (rev 50535)
+++ trunk/Master/texmf-dist/doc/latex/tocdata/README.txt	2019-03-22 20:50:30 UTC (rev 50536)
@@ -1,7 +1,7 @@
 The tocdata package.
 Adds names to table of contents / list of figures entries.
 
-v2.01 — 2019/03/15
+v2.02 — 2019/03/21
 Copyright 2016–2019 Brian Dunn — www.BDTechConcepts.com
 LaTeX Project Public License, version 1.3
 

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

Modified: trunk/Master/texmf-dist/source/latex/tocdata/tocdata.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/tocdata/tocdata.dtx	2019-03-22 20:50:19 UTC (rev 50535)
+++ trunk/Master/texmf-dist/source/latex/tocdata/tocdata.dtx	2019-03-22 20:50:30 UTC (rev 50536)
@@ -15,7 +15,7 @@
 % \iffalse
 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
 %<package>\ProvidesPackage{tocdata}
-%<package>    [2019/03/15 v2.01 Adds author/artist to TOC entries.]
+%<package>    [2019/03/21 v2.02 Adds author/artist to TOC entries.]
 %
 %<*driver>
 \documentclass{ltxdoc}
@@ -186,7 +186,7 @@
 %</driver>
 % \fi
 %
-% \CheckSum{374}
+% \CheckSum{373}
 %
 % \CharacterTable
 % {Upper-case     \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -215,6 +215,7 @@
 % \changes{v2.00}{2019/03/15}{Added support for new float types.}
 % \changes{v2.00}{2019/03/15}{\ 2019/03/15}
 % \changes{v2.01}{2019/03/15}{\ 2019/03/15}
+% \changes{v2.02}{2019/03/21}{\ 2019/03/21}
 
 
 
@@ -449,10 +450,10 @@
 %
 %
 % \subsubsection{Adding \acro{LOF} data per figure}
-% Before each \cs{caption} which is to have an artist:
+% Before each \cs{caption} which is to have an artist or author:
 %
 %	\begin{sourceverb}
-%	\tocdata{lof}{Artist's Name}
+%	\tocdata{lof}{Artist's/Author's Name}
 %	\caption{Figure Title}
 %	\end{sourceverb}
 %
@@ -544,6 +545,7 @@
 % \watchout[redefining]
 % depend on \cs{tocdatapartprint}, so if it is redefined the others will
 % have to be redefined as well.
+% Make these macros robust!\watchout[robust]
 %
 % 
 % \DescribeMacro{\tocdataartistprint}
@@ -556,18 +558,19 @@
 %
 % \subsubsection{Text justification}
 %
-% \DescribeMacro{\tdartistnamejustify}
-% \DescribeMacro{\tdartistnamecenter}
-% \DescribeMacro{\tdartistnameleft}
-% \DescribeMacro{\tdartistnameright}
+% \changes{v2.02}{2019/03/20}{Docs: Fix macro names.}
+% \DescribeMacro{\tdartistjustify}
+% \DescribeMacro{\tdartistcenter}
+% \DescribeMacro{\tdartistleft}
+% \DescribeMacro{\tdartistright}
 % \DescribeMacro{\tdartisttextjustify}
 % \DescribeMacro{\tdartisttextcenter}
 % \DescribeMacro{\tdartisttextleft}
 % \DescribeMacro{\tdartisttextright}
-% \DescribeMacro{\tdauthornamejustify}
-% \DescribeMacro{\tdauthornamecenter}
-% \DescribeMacro{\tdauthornameleft}
-% \DescribeMacro{\tdauthornameright}
+% \DescribeMacro{\tdauthorjustify}
+% \DescribeMacro{\tdauthorcenter}
+% \DescribeMacro{\tdauthorleft}
+% \DescribeMacro{\tdauthorright}
 % \DescribeMacro{\tdauthortextjustify}
 % \DescribeMacro{\tdauthortextcenter}
 % \DescribeMacro{\tdauthortextleft}
@@ -763,7 +766,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\@dottedtocline.\MessageBreak
-            Authors will not appear in TOC, LOF}
+            Authors may not appear in TOC, LOF}
     }%
 %    \end{macrocode}
 % \end{macro}
@@ -777,7 +780,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at part.\MessageBreak
-            Authors will not appear in TOC parts}
+            Authors may not appear in TOC parts}
     }%
 %    \end{macrocode}
 % \end{macro}
@@ -794,7 +797,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at chapter.\MessageBreak
-            Authors will not appear in TOC chapters}
+            Authors may not appear in TOC chapters}
     }%
 }
 %    \end{macrocode}
@@ -810,7 +813,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at section.\MessageBreak
-            Authors will not appear in TOC sections}
+            Authors may not appear in TOC sections}
     }%
 %    \end{macrocode}
 % \end{macro}
@@ -976,11 +979,13 @@
 %
 % User-redefinable macro to print the author's name underneath the part title.
 %
+% Make these macros robust.\watchout
+%
 % \changes{v0.12}{2016/11/29}{Improved spacing.}
 % \changes{v2.00}{2019/03/15}{Added.}
 %
 %    \begin{macrocode}
-\newcommand{\tocdatapartprint}[4]
+\newrobustcmd{\tocdatapartprint}[4]
 {%
     \par\unskip\noindent%
     {%
@@ -1060,10 +1065,11 @@
 % \changes{v0.12}{2016/11/29}{Improved spacing.}
 % \changes{v0.12}{2016/11/30}{Added name alignment.}
 % \changes{v2.00}{2019/03/14}{Added.}
+% \changes{v2.02}{2019/03/20}{Improved spacing.}
 %
 %    \begin{macrocode}
 \newcommand{\tocdataartistprint}{%
-    \par\addvspace{\medskipamount}%
+    \par\smallskip%
     \TD at artistauthorprint{artist}%
 }
 %    \end{macrocode}
@@ -1079,10 +1085,11 @@
 % User-redefinable macro to print the author's name underneath the figure.
 %
 % \changes{v2.00}{2019/03/14}{Added.}
+% \changes{v2.02}{2019/03/20}{Improved spacing.}
 %
 %    \begin{macrocode}
 \newcommand{\tocdataauthorprint}{%
-    \par\unskip
+    \par\smallskip%
     \TD at artistauthorprint{author}%
 }
 %    \end{macrocode}
@@ -1146,6 +1153,7 @@
 % \changes{v0.12}{2016/11/28}{Expands first name before index check.}
 % \changes{v2.00}{2019/03/15}{Improved page breaks.}
 % \changes{v2.00}{2019/03/15}{Factored.}
+% \changes{v2.02}{2019/03/21}{Fix for sectioning name formatting.}
 %    \begin{macrocode}
 \NewDocumentCommand{\TD at sectionauthor}{m s o m O{} m m O{}}{%
 %    \end{macrocode}
@@ -1154,7 +1162,7 @@
 %    \begin{macrocode}
     \IfBooleanTF{#2}%
     {% star:
-        \csuse{#1}*{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}%
+        \csuse{#1}*{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}%
     }%
 %    \end{macrocode}
 % The un-starred version appears in the \acro{TOC}, so add the author's name:
@@ -1165,8 +1173,8 @@
 % Create the section depending on the optional name:
 %    \begin{macrocode}
         \IfValueTF{#3}%
-            {\csuse{#1}[#3]{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}}%
-            {\csuse{#1}[#4]{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}}%
+            {\csuse{#1}[#3]{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}}%
+            {\csuse{#1}[#4]{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}}%
     }% no star
 %    \end{macrocode}
 % Create an index entry depending on whether there is a first name:

Modified: trunk/Master/texmf-dist/tex/latex/tocdata/tocdata.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/tocdata/tocdata.sty	2019-03-22 20:50:19 UTC (rev 50535)
+++ trunk/Master/texmf-dist/tex/latex/tocdata/tocdata.sty	2019-03-22 20:50:30 UTC (rev 50536)
@@ -17,7 +17,7 @@
 %% version 2005/12/01 or later.
 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
 \ProvidesPackage{tocdata}
-    [2019/03/15 v2.01 Adds author/artist to TOC entries.]
+    [2019/03/21 v2.02 Adds author/artist to TOC entries.]
 
 
 \RequirePackage{xparse}
@@ -79,7 +79,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\@dottedtocline.\MessageBreak
-            Authors will not appear in TOC, LOF}
+            Authors may not appear in TOC, LOF}
     }%
 
 \xpatchcmd{\l at part}
@@ -89,7 +89,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at part.\MessageBreak
-            Authors will not appear in TOC parts}
+            Authors may not appear in TOC parts}
     }%
 
 \@ifundefined{chapter}
@@ -102,7 +102,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at chapter.\MessageBreak
-            Authors will not appear in TOC chapters}
+            Authors may not appear in TOC chapters}
     }%
 }
 
@@ -113,7 +113,7 @@
     {%
         \PackageWarningNoLine{tocdata}{%
             Could not patch LaTeX core \protect\l at section.\MessageBreak
-            Authors will not appear in TOC sections}
+            Authors may not appear in TOC sections}
     }%
 
 \AtBeginDocument{
@@ -172,7 +172,7 @@
     {}%
     {#1~}%
 }
-\newcommand{\tocdatapartprint}[4]
+\newrobustcmd{\tocdatapartprint}[4]
 {%
     \par\unskip\noindent%
     {%
@@ -200,11 +200,11 @@
     \addvspace{2ex}%
 }
 \newcommand{\tocdataartistprint}{%
-    \par\addvspace{\medskipamount}%
+    \par\smallskip%
     \TD at artistauthorprint{artist}%
 }
 \newcommand{\tocdataauthorprint}{%
-    \par\unskip
+    \par\smallskip%
     \TD at artistauthorprint{author}%
 }
 \newcommand{\TD at artistauthortextprint}[2]{%
@@ -224,13 +224,13 @@
 \NewDocumentCommand{\TD at sectionauthor}{m s o m O{} m m O{}}{%
     \IfBooleanTF{#2}%
     {% star:
-        \csuse{#1}*{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}%
+        \csuse{#1}*{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}%
     }%
     {% no star:
         \tocdata{toc}{#6 #7}%
         \IfValueTF{#3}%
-            {\csuse{#1}[#3]{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}}%
-            {\csuse{#1}[#4]{#4\nopagebreak\tocdatasectionprint{#5}{#6}{#7}{#8}}}%
+            {\csuse{#1}[#3]{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}}%
+            {\csuse{#1}[#4]{#4\nopagebreak\csuse{tocdata#1print}{#5}{#6}{#7}{#8}}}%
     }% no star
     \ifblank{#6}%
         {\index{#7}}%



More information about the tex-live-commits mailing list