From 70aaae3b3c98fb6357c846ad54ce2367e9682f50 Mon Sep 17 00:00:00 2001
From: Karl Berry <karl@freefriends.org>
Date: Fri, 4 Oct 2019 20:57:14 +0000
Subject: latex2e (4oct19)

git-svn-id: svn://tug.org/texlive/trunk@52286 c570f23f-e606-0410-a88d-b1316a301751
---
 Master/texmf-dist/source/latex/base/ltspace.dtx | 89 ++++++++++++++++---------
 1 file changed, 58 insertions(+), 31 deletions(-)

(limited to 'Master/texmf-dist/source/latex/base/ltspace.dtx')

diff --git a/Master/texmf-dist/source/latex/base/ltspace.dtx b/Master/texmf-dist/source/latex/base/ltspace.dtx
index 6f212bba159..d840b13bbbe 100644
--- a/Master/texmf-dist/source/latex/base/ltspace.dtx
+++ b/Master/texmf-dist/source/latex/base/ltspace.dtx
@@ -1,6 +1,6 @@
 % \iffalse meta-comment
 %
-% Copyright 1993-2018
+% Copyright (C) 1993-2019
 % The LaTeX3 Project and any individual authors listed elsewhere
 % in this file.
 %
@@ -13,7 +13,7 @@
 % The latest version of this license is in
 %    https://www.latex-project.org/lppl.txt
 % and version 1.3c or later is part of all distributions of LaTeX
-% version 2005/12/01 or later.
+% version 2008 or later.
 %
 % This file has the LPPL maintenance status "maintained".
 %
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltspace.dtx}
-             [2018/10/10 v1.3i LaTeX Kernel (spacing)]
+             [2019/08/27 v1.3j LaTeX Kernel (spacing)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltspace.dtx}
@@ -62,6 +62,7 @@
 % \changes{v1.2q}{1996/07/27}{Further documentation of problems}
 % \changes{v1.2r}{1996/07/27}{Correct documentation of problems}
 % \changes{v1.2w}{1998/08/17}{Documentation fixes.}
+% \changes{v1.3j}{2019/08/27}{Make various commands robust}
 %
 %
 % \section{Spacing}
@@ -274,18 +275,66 @@
 %<*2ekernel>
 \message{spacing,}
 %    \end{macrocode}
+%    
+%    \begin{macrocode}
+%</2ekernel>
+%<*2ekernel|latexrelease>
+%<latexrelease>\IncludeInRelease{2019/10/01}%
+%<latexrelease>                 {\pagebreak}{Make commands robust}%
+%    \end{macrocode}
 %
 %  \begin{macro}{\pagebreak}
 %  \begin{macro}{\nopagebreak}
 % \changes{v1.2h}{1995/07/05}{Reimplemented both using \cs{@no@pgbk}}
 % \changes{v1.2j}{1995/10/16}{(DPC) Use \cs{@testopt} /1911}
 %    \begin{macrocode}
-\def\pagebreak{\@testopt{\@no@pgbk-}4}
-\def\nopagebreak{\@testopt\@no@pgbk4}
+\DeclareRobustCommand\pagebreak{\@testopt{\@no@pgbk-}4}
+\DeclareRobustCommand\nopagebreak{\@testopt\@no@pgbk4}
+%    \end{macrocode}
+%  \end{macro}
+%  \end{macro}
+%
+%  \begin{macro}{\linebreak}
+%  \begin{macro}{\nolinebreak}
+% \changes{v1.2u}{1996/10/29}{Reimplemented both using \cs{@no@lnbk}}
+% \changes{v1.2j}{1995/10/16}{(DPC) Use \cs{@testopt} /1911}
+%    \begin{macrocode}
+\DeclareRobustCommand\linebreak{\@testopt{\@no@lnbk-}4}
+\DeclareRobustCommand\nolinebreak{\@testopt\@no@lnbk4}
 %    \end{macrocode}
 %  \end{macro}
 %  \end{macro}
 %
+%  \begin{macro}{\samepage}
+%    \begin{macrocode}
+\DeclareRobustCommand\samepage{\interlinepenalty\@M
+   \postdisplaypenalty\@M
+   \interdisplaylinepenalty\@M
+   \@beginparpenalty\@M
+   \@endparpenalty\@M
+   \@itempenalty\@M
+   \@secpenalty\@M
+   \interfootnotelinepenalty\@M}
+%    \end{macrocode}
+%  \end{macro}
+%
+%    \begin{macrocode}
+%</2ekernel|latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<latexrelease>\IncludeInRelease{0000/00/00}%
+%<latexrelease>                 {\pagebreak}{Make commands robust}%
+%<latexrelease>
+%<latexrelease>\kernel@make@fragile\pagebreak
+%<latexrelease>\kernel@make@fragile\nopagebreak
+%<latexrelease>\kernel@make@fragile\linebreak
+%<latexrelease>\kernel@make@fragile\nolinebreak
+%<latexrelease>\kernel@make@fragile\samepage
+%<latexrelease>
+%<latexrelease>\EndIncludeInRelease
+%<*2ekernel>
+%    \end{macrocode}
+%
+%
 %
 %  \begin{macro}{\@no@pgbk}
 % \changes{v1.2h}{1995/07/05}{Macro replaces \cs{@pgbk}
@@ -302,16 +351,7 @@
 %    \end{macrocode}
 %  \end{macro}
 %
-%  \begin{macro}{\linebreak}
-%  \begin{macro}{\nolinebreak}
-% \changes{v1.2u}{1996/10/29}{Reimplemented both using \cs{@no@lnbk}}
-% \changes{v1.2j}{1995/10/16}{(DPC) Use \cs{@testopt} /1911}
-%    \begin{macrocode}
-\def\linebreak{\@testopt{\@no@lnbk-}4}
-\def\nolinebreak{\@testopt\@no@lnbk4}
-%    \end{macrocode}
-%  \end{macro}
-%  \end{macro}
+%
 %  \begin{macro}{\@no@lnbk}
 % \changes{v1.2u}{1996/10/29}{Macro replaces \cs{@lnbk}
 %                 and \cs{@nolnbk}}
@@ -331,19 +371,6 @@
 %    \end{macrocode}
 %  \end{macro}
 %
-%  \begin{macro}{\samepage}
-%    \begin{macrocode}
-\def\samepage{\interlinepenalty\@M
-   \postdisplaypenalty\@M
-   \interdisplaylinepenalty\@M
-   \@beginparpenalty\@M
-   \@endparpenalty\@M
-   \@itempenalty\@M
-   \@secpenalty\@M
-   \interfootnotelinepenalty\@M}
-%    \end{macrocode}
-%  \end{macro}
-%
 %
 %  \begin{macro}{\\}
 % \changes{v1.2a}{1994/11/11}{(DPC) Make robust}
@@ -1140,9 +1167,9 @@
 % \begin{macro}{\enspace}
 % \changes{v1.3h}{2018/09/24}{Start LR-mode if necessary (git/49)}   
 %    \begin{macrocode}
-\def\thinspace{\leavevmode@ifvmode\kern .16667em }
-\def\negthinspace{\leavevmode@ifvmode\kern-.16667em }
-\def\enspace{\leavevmode@ifvmode\kern.5em }
+\DeclareRobustCommand\thinspace{\leavevmode@ifvmode\kern .16667em }
+\DeclareRobustCommand\negthinspace{\leavevmode@ifvmode\kern-.16667em }
+\DeclareRobustCommand\enspace{\leavevmode@ifvmode\kern.5em }
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}
-- 
cgit v1.2.3

