Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tab char to \dospecials #1533

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions base/changes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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@latex-project.org>
* ltdirchk.dtx, ltplain.dtx
Add tab char to \dospecials

2024-11-12 Joseph Wright <Joseph.Wright@latex-project.org>
* ltfinal.dtx (subsection{Case changing}):
Use \text_titlecase_...:nn for titlecasing
Expand Down
12 changes: 12 additions & 0 deletions base/doc/ltnews41.tex
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,14 @@ \subsection{Refinement of \cs{MakeTitlecase}}
\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
be used in for example a \texttt{v}~specification document command without
additional steps.

\section{Bug fixes}

%\subsection{A fix}
Expand Down Expand Up @@ -205,6 +213,10 @@ \section{Bug fixes}
\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}
Expand Down
5 changes: 3 additions & 2 deletions base/ltdirchk.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand All @@ -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@tempswa\iffalse}
Expand Down
7 changes: 4 additions & 3 deletions base/ltplain.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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.
%
Expand Down
2 changes: 1 addition & 1 deletion base/testfiles/github-robust-0123.luatex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ and I'll forget about whatever was undefined.
---------------------------------------
\dj -> \dj
---------------------------------------
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
---------------------------------------
\doteq -> \doteq
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion base/testfiles/github-robust-0123.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ l. ...\mruntest{ccc}
---------------------------------------
\dj -> \dj
---------------------------------------
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
---------------------------------------
\doteq -> \doteq
---------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion base/testfiles/github-robust-0123.xetex.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ and I'll forget about whatever was undefined.
---------------------------------------
\dj -> \dj
---------------------------------------
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~
\dospecials -> \ \\\{\}\$\&\#\^\_\%\~\^^I
---------------------------------------
\doteq -> \doteq
---------------------------------------
Expand Down