summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tocdata
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-03-22 20:50:30 +0000
committerKarl Berry <karl@freefriends.org>2019-03-22 20:50:30 +0000
commite78816c4002b589db4bda4039c0c99f4f76af5d9 (patch)
treea309bcf5969c08a568d36762be4a560fee1b5da6 /Master/texmf-dist/tex/latex/tocdata
parent96053081ddf50ffc6860dd4ff9b019bf0c12df5f (diff)
tocdata (22mar19)
git-svn-id: svn://tug.org/texlive/trunk@50536 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tocdata')
-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}}%