[latex3-commits] [latex3/latex2e] develop: Add forth empty argument to a \contentsline example (#1313) (ebdc4d1c)

github at latex-project.org github at latex-project.org
Mon Mar 25 14:31:45 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/ebdc4d1c0e906a65195e4152cfc43bb949158c7b

>---------------------------------------------------------------

commit ebdc4d1c0e906a65195e4152cfc43bb949158c7b
Author: Yukai Chou <muzimuzhi at gmail.com>
Date:   Mon Mar 25 21:31:45 2024 +0800

    Add forth empty argument to a \contentsline example (#1313)
    
    The forth argument was added in 0b7a68ea (Gh633 (#<span></span>634), 2021-07-28).


>---------------------------------------------------------------

ebdc4d1c0e906a65195e4152cfc43bb949158c7b
 base/ltsect.dtx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/base/ltsect.dtx b/base/ltsect.dtx
index 45607044..21aeda32 100644
--- a/base/ltsect.dtx
+++ b/base/ltsect.dtx
@@ -31,7 +31,7 @@
 %%% From File: ltsect.dtx
 %<*driver>
 % \fi
-\ProvidesFile{ltsect.dtx}[2021/07/28 v1.1f LaTeX Kernel (Sectioning)]
+\ProvidesFile{ltsect.dtx}[2024/03/25 v1.1f LaTeX Kernel (Sectioning)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltsect.dtx}
@@ -835,13 +835,13 @@
 % \begin{macro}{\contentsline}
 % The |\contentsline{|\meta{type}|}{|\meta{entry}|}{|\meta{page}|}{}|
 % macro produces a \meta{type} entry in a table of contents, etc.
-% It will appear in the |.toc| or other file.  For example,
-% The entry for subsection 1.4.3 in the table of contents for
-% example, might be produced by:
+% It will appear in the |.toc| or other file.
+% For example, the entry for subsection 1.4.3 in the table of contents,
+% might be produced by:
 %
 %  \begin{verbatim}
 %       \contentsline{subsection}
-%           {\makebox{30pt}[r]{1.4.3} Gnats and Gnus}{22}
+%           {\numberline{1.4.3}Gnats and Gnus}{22}{}
 %  \end{verbatim}
 %
 %  The |\protect| command causes command sequences to be written





More information about the latex3-commits mailing list.