[latex3-commits] [latex3/latex2e] dospecial-tab: Add tab char to \dospecials (d13280602)
github at latex-project.org
github at latex-project.org
Sat Nov 2 10:31:02 CET 2024
Repository : https://github.com/latex3/latex2e
On branch : dospecial-tab
Link : https://github.com/latex3/latex2e/commit/d13280602728984ce3bd45ecc512cad3d8c6498b
>---------------------------------------------------------------
commit d13280602728984ce3bd45ecc512cad3d8c6498b
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
>---------------------------------------------------------------
d13280602728984ce3bd45ecc512cad3d8c6498b
base/changes.txt | 4 ++++
base/doc/ltnews41.tex | 12 ++++++++++++
base/ltdirchk.dtx | 5 +++--
base/ltplain.dtx | 7 ++++---
4 files changed, 23 insertions(+), 5 deletions(-)
diff --git a/base/changes.txt b/base/changes.txt
index 6321cf6fd..f3e2ea600 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
+
================================================================================
All changes above are only part of the development branch for the next release.
================================================================================
diff --git a/base/doc/ltnews41.tex b/base/doc/ltnews41.tex
index 0c9751704..6308ffd20 100644
--- a/base/doc/ltnews41.tex
+++ b/base/doc/ltnews41.tex
@@ -149,6 +149,14 @@
\section{Code improvements}
+\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}
@@ -181,6 +189,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.
%
More information about the latex3-commits
mailing list.