[latex3-commits] [latex3/latex2e] gh1282: re-indent for #1282, and improve spme line breaks (a06f5821)

github at latex-project.org github at latex-project.org
Sun Mar 17 13:08:48 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : gh1282
Link       : https://github.com/latex3/latex2e/commit/a06f58212ebc616a0d22c56c1cb8b74d0be20762

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

commit a06f58212ebc616a0d22c56c1cb8b74d0be20762
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Mar 17 12:08:48 2024 +0000

    re-indent for #1282, and improve spme line breaks


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

a06f58212ebc616a0d22c56c1cb8b74d0be20762
 base/doc/clsguide.tex | 32 ++++++++++++++++++--------------
 base/doc/usrguide.tex |  2 +-
 2 files changed, 19 insertions(+), 15 deletions(-)

diff --git a/base/doc/clsguide.tex b/base/doc/clsguide.tex
index c23f0a55..f1a7dbab 100644
--- a/base/doc/clsguide.tex
+++ b/base/doc/clsguide.tex
@@ -33,7 +33,7 @@
 \usepackage[T1]{fontenc}  % needed for \textbackslash in tt
 \usepackage{csquotes}
 
-\title{\LaTeX\ for package and class authors --- current version}
+\title{\LaTeX\ for package and class authors\\current version}
 \author{\copyright~Copyright 2023, \LaTeX\ Project Team.\\
    All rights reserved.%
    \footnote{This file may distributed and/or modified under the
@@ -42,7 +42,7 @@
     \texttt{clsguide.tex} for full details.}%
 }
 
-\date{2023-12-02}
+\date{2024-03-17}
 
 \NewDocumentCommand\cs{m}{\texttt{\textbackslash\detokenize{#1}}}
 \NewDocumentCommand\marg{m}{\arg{#1}}
@@ -64,7 +64,7 @@
 \section{Introduction}
 
 \LaTeXe{} was released in 1994 and added a number of then-new concepts to
-\LaTeX{}. For package and class authors, these are described in
+\LaTeX{}. For package and class authors, these are described in the document
 \texttt{clsguide-historic}, which has largely remained unchanged. Since then,
 the \LaTeX{} team have worked on a number of ideas, firstly a programming
 language for \LaTeX{} (L3 programming layer) and then a range of tools for
@@ -1104,11 +1104,13 @@ team strongly suggest using the L3 programming layer commands in the
 Suppose that you want to define an environment for displaying text that is
 numbered as an equation. A straightforward way to do this is as follows:
 \begin{verbatim}
-  \newenvironment{texteqn}
-    {\begin{equation}
-       \begin{minipage}{0.9\linewidth}}
-      {\end{minipage}
-     \end{equation}}
+  \newenvironment{texteqn}{%
+    \begin{equation}%
+      \begin{minipage}{0.9\linewidth}%
+  }{%
+      \end{minipage}%
+    \end{equation}%
+  }
 \end{verbatim}
 However, if you have tried this then you will probably have noticed that it
 does not work perfectly when used in the middle of a paragraph because an
@@ -1118,12 +1120,14 @@ environment.
 You can avoid this problem using |\ignorespacesafterend|; it should be
 inserted as shown here:
 \begin{verbatim}
-  \newenvironment{texteqn}
-    {\begin{equation}
-       \begin{minipage}{0.9\linewidth}}
-      {\end{minipage}
-     \end{equation}
-     \ignorespacesafterend}
+  \newenvironment{texteqn}{%
+    \begin{equation}%
+      \begin{minipage}{0.9\linewidth}%
+  }{%
+      \end{minipage}%
+    \end{equation}%
+    \ignorespacesafterend
+  }
 \end{verbatim}
 
 This command may also have other uses.
diff --git a/base/doc/usrguide.tex b/base/doc/usrguide.tex
index 1bd6e145..d61a76c1 100644
--- a/base/doc/usrguide.tex
+++ b/base/doc/usrguide.tex
@@ -34,7 +34,7 @@
 \usepackage{csquotes}
 \usepackage{url}
 
-\title{\LaTeX\ for authors --- current version}
+\title{\LaTeX\ for authors\\ current version}
 \author{\copyright~Copyright 2020-2023, \LaTeX\ Project Team.\\
    All rights reserved.%
    \footnote{This file may be distributed and/or modified under the





More information about the latex3-commits mailing list.