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/tex/latex/tocdata/tocdata.sty | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Master/texmf-dist/tex') 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