[latex3-commits] [git/LaTeX3-latex3-latex2e] copyedits-chris: ltpara version is temporary (eeff8329)

Chris Rowley car222222 at github.github.io
Mon Sep 27 14:09:53 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : copyedits-chris
Link       : https://github.com/latex3/latex2e/commit/eeff8329ec685e10c39a35435791f2580e7b7b2b

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

commit eeff8329ec685e10c39a35435791f2580e7b7b2b
Author: Chris Rowley <car222222 at users.noreply.github.com>
Date:   Mon Sep 27 19:09:53 2021 +0700

    ltpara version is temporary
    
    It contains some notes on possible further needed changes, including a
    code suggestion


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

eeff8329ec685e10c39a35435791f2580e7b7b2b
 base/ltpara.dtx | 22 ++++++++++++----------
 1 file changed, 12 insertions(+), 10 deletions(-)

diff --git a/base/ltpara.dtx b/base/ltpara.dtx
index 831a98f2..55070fb0 100644
--- a/base/ltpara.dtx
+++ b/base/ltpara.dtx
@@ -1013,7 +1013,8 @@
 %    the horizontal list before any of the above happens. 
 %    If there was a glue item at the end of the list then
 %    it should get removed before the hook code gets added so we have
-%    to arrange for this removal.  XXX and penalty, just in case!
+%    to arrange for this removal.  
+%    TEMP NOTE: maybe a ‘nobreak’ should also be added?
 %
 %    There is not much point in checking if there was really a glue
 %    item at the end of the horizontal list, instead we simply try to
@@ -1035,11 +1036,10 @@
 %    \end{macrocode}
 %    The final action (before getting to the point where
 %    \cs{tex_par:D} is called) is to add an extra glue item so that the
-%    primitive is prevented from removing intended glue XXX ??  
+%    primitive is prevented from removing intended glue
 %    (if there was some). If we don't do this and the
-%    horizontal list ends in several glue items we would end up 
-%    removing two glue items instead of just the last one, which would be wrong.  XXX DC needs more rewriting
-%    We use glue (rather than a kern) so that  is minimally faster.  XXX DC Remove! 
+%    horizontal list ends in several glue items we would end up removing 
+%    two glue items instead of just the last one, which would be wrong.  
 %
 %    There is however one other \TeX{} optimization that hurts: in a
 %    sequence like this \verb=$$ ... $$ \par=  \TeX{} will be in
@@ -1052,16 +1052,18 @@
 %    simply goes silently to vmode. Now if we would had added something (to
 %    prevent glue removal) that would look to \TeX{} like material
 %    after the display and so we would end up with an empty paragraph
-%    just containing \cs{parfillskip}.   XXX not needed!! Bad text also.
+%    just containing \cs{parfillskip}.   
+%    TEMP NOTE: This para does not quite fit now, rewrite or move? 
+%    ADDED extra texts below:
 %
 %    More generally, it is always best not to add anything 
-%    non-essential (such as  guard items) to an empty list.  XXX ADDED
+%    non-essential (such as  guard items) to an empty list.  
 %
-%    We therefore check whether the current hlist ends with a glue item  XXX DC add ie is nonempty?? 
+%    We therefore check whether the current hlist ends with a glue item  (and so is nonempty)
 %    (\cs{tex_lastnodetype:D} has the value \texttt{11}) and
-%    if it does then we add an extra zero-length glue item as a guard, 
+%    if it does then we add an extra, zero-length glue item as a guard, 
 %    so that only this extra glue will be removed by the
-%    following \cs{tex_par:D} primitive.   XXX  See DC too 
+%    following \cs{tex_par:D} primitive.
 %    \begin{macrocode}
            \if_int_compare:w 11 = \tex_lastnodetype:D
              \tex_hskip:D \c_zero_dim





More information about the latex3-commits mailing list.