[latex3-commits] [latex2e-public] r1427 - fix documentation of \@afterheading and \@sect to document that \clubpenalty is set locally

noreply at latex-project.org noreply at latex-project.org
Fri Mar 17 16:09:36 CET 2017


Author: carlisle
Date: 2017-03-17 16:09:35 +0100 (Fri, 17 Mar 2017)
New Revision: 1427

Modified:
   trunk/base/ltsect.dtx
Log:
fix documentation of \@afterheading and \@sect to document that \clubpenalty is set locally

Modified: trunk/base/ltsect.dtx
===================================================================
--- trunk/base/ltsect.dtx	2017-03-17 14:33:39 UTC (rev 1426)
+++ trunk/base/ltsect.dtx	2017-03-17 15:09:35 UTC (rev 1427)
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright 1993-2016
+% Copyright 1993-2017
 % The LaTeX3 Project and any individual authors listed elsewhere
 % in this file.
 %
@@ -31,7 +31,7 @@
 %%% From File: ltsect.dtx
 %<*driver>
 % \fi
-\ProvidesFile{ltsect.dtx}[2016/09/29 v1.0z LaTeX Kernel (Sectioning)]
+\ProvidesFile{ltsect.dtx}[2017/03/17 v1.1a LaTeX Kernel (Sectioning)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltsect.dtx}
@@ -295,7 +295,9 @@
 % \begin{macro}{\@sect}
 % Pseudocode for the |\@sect| command
 % \begin{oldcomments}
-% \@sect{NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE}[ARG1]{ARG2}
+% \@sect{NAME}{LEVEL}
+%       {INDENT}{BEFORESKIP}{AFTERSKIP}
+%       {STYLE}[ARG1]{ARG2}
 %           ==
 %   BEGIN
 %    IF LEVEL > \c at secnumdepth
@@ -411,7 +413,7 @@
 %           @noskipsec :=G T
 %           \everypar{ IF @noskipsec = T
 %                        THEN @noskipsec :=G F
-%                             \clubpenalty :=G 10000
+%                             \clubpenalty := 10000 % local
 %                             \hskip -\parindent
 %                             \begingroup
 %                               \@svsechd
@@ -419,7 +421,7 @@
 %                             \unskip
 %                             \hskip -AFTERSKIP \relax
 %                                           %% relax added 14 Jan 91
-%                        ELSE \clubpenalty :=G \@clubpenalty
+%                        ELSE \clubpenalty := \@clubpenalty % local
 %                             \everypar := NULL
 %                      FI
 %                    }
@@ -488,7 +490,8 @@
 %    IF AFTERSKIP > 0
 %      THEN \begingroup
 %             STYLE
-%             \@hangfrom{\hskip INDENT}{\interlinepenalty 10000 ARG\par}
+%             \@hangfrom{\hskip INDENT}
+%                       {\interlinepenalty 10000 ARG\par}
 %           \endgroup
 %      ELSE \@svsechd == BEGIN STYLE
 %                              \hskip INDENT
@@ -504,15 +507,15 @@
 % \@afterheading ==
 %  BEGIN
 %    @nobreak :=G true
-%    \everypar := BEGIN  IF @nobreak = T
-%                          THEN @nobreak  :=G false
-%                               \clubpenalty :=G 10000
-%                               IF @afterindent = F
-%                                 THEN remove \lastbox
-%                               FI
-%                          ELSE \clubpenalty :=G \@clubpenalty
-%                               \everypar := NULL
-%                       FI
+%    \everypar := BEGIN IF @nobreak = T
+%                         THEN @nobreak  :=G false
+%                              \clubpenalty := 10000 % local
+%                              IF @afterindent = F
+%                                THEN remove \lastbox
+%                              FI
+%                         ELSE \clubpenalty := \@clubpenalty % local
+%                              \everypar := NULL
+%                      FI
 %                 END
 %  END
 % \end{oldcomments}



More information about the latex3-commits mailing list