From c1dca19fae789b12bc5c86cfe9cea55c0e7b3a8f Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 16 Mar 2019 21:46:44 +0000 Subject: tocdata (16mar19) git-svn-id: svn://tug.org/texlive/trunk@50416 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/tocdata/README.txt | 2 +- Master/texmf-dist/doc/latex/tocdata/tocdata.pdf | Bin 920673 -> 920915 bytes Master/texmf-dist/source/latex/tocdata/tocdata.dtx | 20 ++++++++++++++++++-- Master/texmf-dist/tex/latex/tocdata/tocdata.sty | 12 +++++++++++- 4 files changed, 30 insertions(+), 4 deletions(-) diff --git a/Master/texmf-dist/doc/latex/tocdata/README.txt b/Master/texmf-dist/doc/latex/tocdata/README.txt index 0083b1a5ea4..fbf53b5f320 100644 --- a/Master/texmf-dist/doc/latex/tocdata/README.txt +++ b/Master/texmf-dist/doc/latex/tocdata/README.txt @@ -1,7 +1,7 @@ The tocdata package. Adds names to table of contents / list of figures entries. -v2.00 — 2019/03/15 +v2.01 — 2019/03/15 Copyright 2016–2019 Brian Dunn — www.BDTechConcepts.com LaTeX Project Public License, version 1.3 diff --git a/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf b/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf index 53232f90f8f..35233d5040f 100644 Binary files a/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf and b/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf differ diff --git a/Master/texmf-dist/source/latex/tocdata/tocdata.dtx b/Master/texmf-dist/source/latex/tocdata/tocdata.dtx index 25f73bfb69a..3857ee5f3d0 100644 --- a/Master/texmf-dist/source/latex/tocdata/tocdata.dtx +++ b/Master/texmf-dist/source/latex/tocdata/tocdata.dtx @@ -15,7 +15,7 @@ % \iffalse %\NeedsTeXFormat{LaTeX2e}[1999/12/01] %\ProvidesPackage{tocdata} -% [2019/03/15 v2.00 Adds author/artist to TOC entries.] +% [2019/03/15 v2.01 Adds author/artist to TOC entries.] % %<*driver> \documentclass{ltxdoc} @@ -186,7 +186,7 @@ Keywords={LaTeX, tocdata, contents}% % % \fi % -% \CheckSum{363} +% \CheckSum{374} % % \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 @@ -214,6 +214,7 @@ Keywords={LaTeX, tocdata, contents}% % \changes{v2.00}{2019/03/15}{Added caption authors.} % \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} @@ -799,6 +800,21 @@ Keywords={LaTeX, tocdata, contents}% % \end{macrocode} % \end{macro} +% \begin{macro}{\l@section} Patched for \pkg{tocdata}. +% \changes{v2.01}{2019/03/15}{Fix for \LaTeX\ core section \TOC\ entry.} +% \begin{macrocode} +\xpatchcmd{\l@section} + {\hfil\nobreak} + {\hfil\TD@usetocdata\nobreak} + {}% + {% + \PackageWarningNoLine{tocdata}{% + Could not patch LaTeX core \protect\l@section.\MessageBreak + Authors will not appear in TOC sections} + }% +% \end{macrocode} +% \end{macro} + % \subsection{\pkg{titletoc} support} % diff --git a/Master/texmf-dist/tex/latex/tocdata/tocdata.sty b/Master/texmf-dist/tex/latex/tocdata/tocdata.sty index 6bc4e76600a..6c74de24c37 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.00 Adds author/artist to TOC entries.] + [2019/03/15 v2.01 Adds author/artist to TOC entries.] \RequirePackage{xparse} @@ -106,6 +106,16 @@ }% } +\xpatchcmd{\l@section} + {\hfil\nobreak} + {\hfil\TD@usetocdata\nobreak} + {}% + {% + \PackageWarningNoLine{tocdata}{% + Could not patch LaTeX core \protect\l@section.\MessageBreak + Authors will not appear in TOC sections} + }% + \AtBeginDocument{ \@ifpackageloaded{titletoc}{ -- cgit v1.2.3