[latex3-commits] [latex3/latex2e] develop: Add tab char to \dospecials (bb761eb8a)

github at latex-project.org github at latex-project.org
Thu Nov 14 18:42:12 CET 2024


Repository : https://github.com/latex3/latex2e
On branch  : develop
Link       : https://github.com/latex3/latex2e/commit/bb761eb8a6f93c1c7d7d01332ff0d46ee4700b4c

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

commit bb761eb8a6f93c1c7d7d01332ff0d46ee4700b4c
Author: Joseph Wright <joseph at texdev.net>
Date:   Sat Nov 2 09:24:34 2024 +0000

    Add tab char to \dospecials
    
    See latex3/latex3#762


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

bb761eb8a6f93c1c7d7d01332ff0d46ee4700b4c
 base/changes.txt                             |  4 ++++
 base/doc/ltnews41.tex                        | 12 ++++++++++++
 base/ltdirchk.dtx                            |  5 +++--
 base/ltplain.dtx                             |  7 ++++---
 base/testfiles/github-robust-0123.luatex.tlg |  2 +-
 base/testfiles/github-robust-0123.tlg        |  2 +-
 base/testfiles/github-robust-0123.xetex.tlg  |  2 +-
 7 files changed, 26 insertions(+), 8 deletions(-)

diff --git a/base/changes.txt b/base/changes.txt
index 75821971e..728b5e5a5 100644
--- a/base/changes.txt
+++ b/base/changes.txt
@@ -6,6 +6,10 @@ to completeness or accuracy and it contains some references to files that are
 not part of the distribution.
 ================================================================================
 
+2024-11-02  Joseph Wright  <Joseph.Wright at latex-project.org>
+	* ltdirchk.dtx, ltplain.dtx
+	Add tab char to \dospecials
+
 2024-11-12  Joseph Wright  <Joseph.Wright at latex-project.org>
 	* ltfinal.dtx (subsection{Case changing}):
 	Use \text_titlecase_...:nn for titlecasing
diff --git a/base/doc/ltnews41.tex b/base/doc/ltnews41.tex
index eef1f26fe..94d5dcbca 100644
--- a/base/doc/ltnews41.tex
+++ b/base/doc/ltnews41.tex
@@ -173,6 +173,14 @@ We have also added an additional key to the optional argument to
 \cs{MakeTitlecase} which allows the user to decide if this will
 apply only to the first word (the default) or to all words.
 
+\subsection{Tab character as a special}
+
+In \LaTeX{} News~38, we described the extension of \cs{verb}, etc., to cover
+the tab character as equivalent to a space. We have now added tabs to the
+standard list of characters covered by \cs{dospecials}. This allows them to
+used in for example a \texttt{v}~specification document command without
+additional steps.
+
 \section{Bug fixes}
 
 %\subsection{A fix}
@@ -205,6 +213,10 @@ Leslie Lamport.
   \emph{\LaTeXe{} news 1--39}. June, 2024.
   \url{https://latex-project.org/news/latex2e-news/ltnews.pdf}
 
+\bibitem{41:ltnews38} \LaTeX{} Project Team.
+  \emph{\LaTeXe{} news 38}. November 2023.
+  \url{https://latex-project.org/news/latex2e-news/ltnews38.pdf}
+
 \bibitem{41:ltnews40} \LaTeX{} Project Team.
   \emph{\LaTeXe{} news 40}. November 2024.
   \url{https://latex-project.org/news/latex2e-news/ltnews40.pdf}
diff --git a/base/ltdirchk.dtx b/base/ltdirchk.dtx
index 917431552..cefbdefce 100644
--- a/base/ltdirchk.dtx
+++ b/base/ltdirchk.dtx
@@ -38,7 +38,7 @@
 % \fi
 % \fi
 \ProvidesFile{ltdirchk.dtx}
-             [2024/02/11 v1.3a LaTeX Kernel (System Dependent Parts)]
+             [2024/11/02 v1.3b LaTeX Kernel (System Dependent Parts)]
 % \iffalse
 % \iffalse
 \documentclass{ltxdoc}
@@ -307,6 +307,7 @@
 %<initex>\fi
 %    \end{macrocode}
 %
+% \changes{v1.3b}{2024/11/02}{Add tab char to \cs{dospecials}}
 % That distraction over, back to the basics of a format.
 %    \begin{macrocode}
 \catcode`\#=6
@@ -322,7 +323,7 @@
 \newlinechar`\^^J
 \def\typeout{\immediate\write17}
 \def\dospecials{\do\ \do\\\do\{\do\}\do\$\do\&%
-  \do\#\do\^\do\_\do\%\do\~}
+  \do\#\do\^\do\_\do\%\do\~\do\^^I}
 \def\@makeother#1{\catcode`#1=12\relax}
 \def\space{ }
 \def\@tempswafalse{\let\if at tempswa\iffalse}
diff --git a/base/ltplain.dtx b/base/ltplain.dtx
index a628b954d..97f5c3f52 100644
--- a/base/ltplain.dtx
+++ b/base/ltplain.dtx
@@ -32,7 +32,7 @@
 %<*driver>
 % \fi
 \ProvidesFile{ltplain.dtx}
-             [2024/02/08 v2.3j LaTeX Kernel (Plain TeX)]
+             [2024/11/02 v2.3k LaTeX Kernel (Plain TeX)]
 % \iffalse
 \documentclass{ltxdoc}
 \GetFileInfo{ltplain.dtx}
@@ -137,12 +137,13 @@
 % |\catcode`\a=11 ... \catcode`\z=11 %| lowercase letters\\
 % all others are type 12 (other)
 %
+% \changes{v1.3k}{2024/11/02}{Add tab char to \cs{dospecials}}
 % Here is a list of the characters that have been specially catcoded:
 %    \begin{macrocode}
 \def\dospecials{\do\ \do\\\do\{\do\}\do\$\do\&%
-  \do\#\do\^\do\_\do\%\do\~}
+  \do\#\do\^\do\_\do\%\do\~\do\^^I}
 %    \end{macrocode}
-% (not counting ascii null, tab, linefeed, formfeed, return, delete)
+% (not counting ascii null, linefeed, formfeed, return, delete)
 % Each symbol in the list is preceded by \do, which can be defined
 % if you want to do something to every item in the list.
 %
diff --git a/base/testfiles/github-robust-0123.luatex.tlg b/base/testfiles/github-robust-0123.luatex.tlg
index 31824c2f0..ca6bab187 100644
--- a/base/testfiles/github-robust-0123.luatex.tlg
+++ b/base/testfiles/github-robust-0123.luatex.tlg
@@ -793,7 +793,7 @@ and I'll forget about whatever was undefined.
 ---------------------------------------
 \dj -> \dj 
 ---------------------------------------
-\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
+\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
 ---------------------------------------
 \doteq -> \doteq 
 ---------------------------------------
diff --git a/base/testfiles/github-robust-0123.tlg b/base/testfiles/github-robust-0123.tlg
index b0e856cd0..470d7cab6 100644
--- a/base/testfiles/github-robust-0123.tlg
+++ b/base/testfiles/github-robust-0123.tlg
@@ -785,7 +785,7 @@ l. ...\mruntest{ccc}
 ---------------------------------------
 \dj -> \dj 
 ---------------------------------------
-\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
+\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
 ---------------------------------------
 \doteq -> \doteq 
 ---------------------------------------
diff --git a/base/testfiles/github-robust-0123.xetex.tlg b/base/testfiles/github-robust-0123.xetex.tlg
index 281372987..44a87bfd9 100644
--- a/base/testfiles/github-robust-0123.xetex.tlg
+++ b/base/testfiles/github-robust-0123.xetex.tlg
@@ -793,7 +793,7 @@ and I'll forget about whatever was undefined.
 ---------------------------------------
 \dj -> \dj 
 ---------------------------------------
-\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
+\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
 ---------------------------------------
 \doteq -> \doteq 
 ---------------------------------------





More information about the latex3-commits mailing list.