diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/tocdata/README.txt | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/tocdata/tocdata.pdf | bin | 920673 -> 920915 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/tocdata/tocdata.dtx | 20 | ||||
-rw-r--r-- | 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 Binary files differindex 53232f90f8f..35233d5040f 100644 --- a/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf +++ b/Master/texmf-dist/doc/latex/tocdata/tocdata.pdf 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 %<package>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<package>\ProvidesPackage{tocdata} -%<package> [2019/03/15 v2.00 Adds author/artist to TOC entries.] +%<package> [2019/03/15 v2.01 Adds author/artist to TOC entries.] % %<*driver> \documentclass{ltxdoc} @@ -186,7 +186,7 @@ Keywords={LaTeX, tocdata, contents}% %</driver> % \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}{ |