[latex3-commits] [git/LaTeX3-latex3-latex2e] gh367: address comments made (214376a9)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jan 27 10:36:24 CET 2022


Repository : https://github.com/latex3/latex2e
On branch  : gh367
Link       : https://github.com/latex3/latex2e/commit/214376a90114f629da4b553fe9db404dc1442af2

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

commit 214376a90114f629da4b553fe9db404dc1442af2
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jan 27 10:36:24 2022 +0100

    address comments made


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

214376a90114f629da4b553fe9db404dc1442af2
 base/changes.txt      |  2 +-
 base/doc/ltnews35.tex |  8 +++++---
 base/ltplain.dtx      | 10 +++++-----
 3 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index a67157b8..91411f55 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -10,7 +10,7 @@ are not part of the distribution.
 2022-01-25  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
 
 	* ltplain.dtx (section{Plain \TeX}):
-	Alter \obeyspaces and \obeylines to use a redirection for special special
+	Alter \obeyspaces and \obeylines to use a redirection for special
 	use cases (gh/367)}
 
 2022-01-20  Frank Mittelbach  <Frank.Mittelbach at latex-project.org>
diff --git a/base/doc/ltnews35.tex b/base/doc/ltnews35.tex
index caf84233..98a796df 100644
--- a/base/doc/ltnews35.tex
+++ b/base/doc/ltnews35.tex
@@ -328,7 +328,7 @@ layer)) which was also used in the example above.
 
 The plain \TeX{} versions of \cs{obeylines} and \cs{obeyspaces} make
 \verb=^^M= and \verb*= = active and force them to execute \cs{par}
-and \cs{space}, respectively. Don Knuth makes a remark in the code
+and \cs{space}, respectively. Don Knuth makes a remark in the \TeX{}book
 that one can then use a trick such as
 \begin{verbatim}
   \let\par=\cr \obeylines \halign{...
@@ -346,11 +346,13 @@ But this means that it is now possible to %
 achieve special effects in a safe way. %
 This paragraph, for example, was produced by %
 making \cs{obeyedspace} generate %
-\texttt{\cs{hspace}\{\cs{\verbvisiblespace}\cs{textbullet}\cs{\verbvisiblespace}\}} and %
+\texttt{\{\cs{\verbvisiblespace}\cs{textbullet}\cs{\verbvisiblespace}\}} and %
 enabling \cs{obeyspaces} within a %
 quote environment.
 \end{quote}
-\vspace{-.7\baselineskip}
+Thus, if you are keen to use the plain \TeX{} trick, you need to say
+\cs{let}\cs{obeyedlines}\texttt{=}\cs{cr} now.
+%
 \githubissue{367}
 
 
diff --git a/base/ltplain.dtx b/base/ltplain.dtx
index 1a3c02d0..ee1cf0a1 100644
--- a/base/ltplain.dtx
+++ b/base/ltplain.dtx
@@ -1275,8 +1275,12 @@
 %    \begin{macrocode}
 \begingroup
 \catcode`\ =\active%
-\global\let =\space%
 \gdef\obeyspaces{\catcode`\ \active\let =\obeyedspace}%
+%    \end{macrocode}
+%    An active space elsewhere generates \cs{space} by default
+%    (for example in a \cs{write}).  
+%    \begin{macrocode}
+\global\let =\space%
 \endgroup
 %    \end{macrocode}
 %
@@ -1319,10 +1323,6 @@
 %<latexrelease>\EndIncludeInRelease
 %<*2ekernel>
 %    \end{macrocode}
-%
-%    An active space generates \cs{space} by default (for example in a \cs{write}):  
-%    \begin{macrocode}
-%    \end{macrocode}
 % \end{macro}
 %
 %  \begin{macro}{\loop}





More information about the latex3-commits mailing list.