summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tocdata/tocdata.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tocdata/tocdata.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tocdata/tocdata.sty22
1 files changed, 11 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/tocdata/tocdata.sty b/Master/texmf-dist/tex/latex/tocdata/tocdata.sty
index 6c74de24c37..13314164446 100644
--- a/Master/texmf-dist/tex/latex/tocdata/tocdata.sty
+++ b/Master/texmf-dist/tex/latex/tocdata/tocdata.sty
@@ -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@part}
@@ -89,7 +89,7 @@
{%
\PackageWarningNoLine{tocdata}{%
Could not patch LaTeX core \protect\l@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@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@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@artistauthorprint{artist}%
}
\newcommand{\tocdataauthorprint}{%
- \par\unskip
+ \par\smallskip%
\TD@artistauthorprint{author}%
}
\newcommand{\TD@artistauthortextprint}[2]{%
@@ -224,13 +224,13 @@
\NewDocumentCommand{\TD@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}}%