diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/titlesec/titletoc.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/titlesec/titletoc.sty | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/Master/texmf-dist/tex/latex/titlesec/titletoc.sty b/Master/texmf-dist/tex/latex/titlesec/titletoc.sty index 7d3ac5e93a6..74e3f244524 100644 --- a/Master/texmf-dist/tex/latex/titlesec/titletoc.sty +++ b/Master/texmf-dist/tex/latex/titlesec/titletoc.sty @@ -1,5 +1,5 @@ % -% Copyright (C) 1998-2023 Javier Bezos http://www.texnia.com +% Copyright (C) 1998-2025 Javier Bezos http://www.texnia.com % % This file may be distributed and/or modified under the conditions of % the MIT License. A version can be found at the end of this file. @@ -7,7 +7,7 @@ % Repository: https://github.com/jbezos/titlesec % -\ProvidesPackage{titletoc}[2023/10/27 v2.16 TOC entries] +\ProvidesPackage{titletoc}[2025/01/04 v2.17 TOC entries] % The following tags are used: % ttl@ : the generic one, shared with titlesec @@ -102,22 +102,15 @@ \DeclareOption{rubberseps}{% \def\ttl@contentsstretch{\vskip\z@\@plus.1\p@}} +\newcommand\contentslabel{} \DeclareOption{leftlabels}{% \renewcommand\numberline[1]{\hb@xt@\@tempdima{#1\ttl@idot\hfil}}% - \newcommand\contentslabel[2][\thecontentslabel\ttl@idot]{% -% \let\ttl@a\thecontentslabel %%%%% For the star variant -% \def\thecontentslabel{#2}% %%% To be fully implemented... when? -% \setbox\z@\hbox{#1}% -% \dimen@\wd\z@ -% \let\thecontentslabel\ttl@a -% \hspace*{-\dimen@}\hb@xt@\dimen@{#1\hfil} -% \show\ttl@b \show\ttl@a + \renewcommand\contentslabel[2][\thecontentslabel\ttl@idot]{% \hspace*{-#2}\hb@xt@#2{#1\hfil}}} \DeclareOption{rightlabels}{% \renewcommand\numberline[1]{\hb@xt@\@tempdima{\hss#1\ttl@idot\enspace}}% - \let\contentslabel\relax - \newcommand\contentslabel[2][\thecontentslabel\ttl@idot\enspace]{% + \renewcommand\contentslabel[2][\thecontentslabel\ttl@idot\enspace]{% \hspace*{-#2}\hb@xt@#2{\hfil#1}}} \newcommand\contentspage[1][\thecontentspage]{% |