summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/base/ltplain.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/base/ltplain.dtx')
-rw-r--r--Master/texmf-dist/source/latex/base/ltplain.dtx27
1 files changed, 16 insertions, 11 deletions
diff --git a/Master/texmf-dist/source/latex/base/ltplain.dtx b/Master/texmf-dist/source/latex/base/ltplain.dtx
index da1398c4538..f14969b31d0 100644
--- a/Master/texmf-dist/source/latex/base/ltplain.dtx
+++ b/Master/texmf-dist/source/latex/base/ltplain.dtx
@@ -32,7 +32,7 @@
%<*driver>
% \fi
\ProvidesFile{ltplain.dtx}
- [2015/03/10 v2.0g LaTeX Kernel (Plain TeX)]
+ [2015/06/19 v2.0h LaTeX Kernel (Plain TeX)]
% \iffalse
\documentclass{ltxdoc}
\GetFileInfo{ltplain.dtx}
@@ -336,6 +336,7 @@
% |\newwrite| and |\newfam| (DPC) to save later redefinition.
% \changes{v2.0a}{2014/12/30}{New engine-specific allocation scheme (latexrelease)}
% \changes{v2.0f}{2015/03/02}{allow 255 math groups in Unicode engines}
+% \changes{v2.0h}{2015/06/19}{Use $-1$ for first range to get contiguous allocation}
% \begin{macrocode}
%</2ekernel>
%<*2ekernel|latexrelease>
@@ -348,7 +349,7 @@
\def\newdimen {\e@alloc\dimen \dimendef {\count11}\insc@unt\float@count}
\def\newskip {\e@alloc\skip \skipdef {\count12}\insc@unt\float@count}
\def\newmuskip
- {\e@alloc\muskip\muskipdef{\count13}\e@alloc@top\e@alloc@top}
+ {\e@alloc\muskip\muskipdef{\count13}\m@ne\e@alloc@top}
% \end{macrocode}
% For compatibility use |\chardef| in the classical range.
% \begin{macrocode}
@@ -359,12 +360,12 @@
\expandafter\e@alloc@chardef
\fi}
{\count14}\insc@unt\float@count}
-\def\newtoks {\e@alloc\toks \toksdef{\count15}\e@alloc@top\e@alloc@top}
-\def\newread {\e@alloc\read \chardef{\count16}\sixt@@n\sixt@@n}
-\def\newwrite {\e@alloc\write \chardef{\count17}\sixt@@n\sixt@@n}
+\def\newtoks {\e@alloc\toks \toksdef{\count15}\m@ne\e@alloc@top}
+\def\newread {\e@alloc\read \chardef{\count16}\m@ne\sixt@@n}
+\def\newwrite {\e@alloc\write \chardef{\count17}\m@ne\sixt@@n}
\def\new@mathgroup
- {\e@alloc\mathgroup\chardef{\count18}\e@mathgroup@top\e@mathgroup@top}
-\def\newlanguage {\e@alloc\language \chardef{\count19}\@cclvi\@cclvi}
+ {\e@alloc\mathgroup\chardef{\count18}\m@ne\e@mathgroup@top}
+\def\newlanguage {\e@alloc\language \chardef{\count19}\m@ne\@cclvi}
\let\newfam\new@mathgroup
%</2ekernel|latexrelease>
% \end{macrocode}
@@ -378,6 +379,7 @@
%<latexrelease>\def\newskip{\alloc@2\skip\skipdef\insc@unt}
%<latexrelease>\def\newmuskip{\alloc@3\muskip\muskipdef\@cclvi}
%<latexrelease>\def\newbox{\alloc@4\box\chardef\insc@unt}
+%<latexrelease>\def\newtoks{\alloc@5\toks\toksdef\@cclvi}
%<latexrelease>\def\newread{\alloc@6\read\chardef\sixt@@n}
%<latexrelease>\def\newwrite{\alloc@7\write\chardef\sixt@@n}
%<latexrelease>\def\new@mathgroup{\alloc@8\fam\chardef\sixt@@n}
@@ -489,15 +491,20 @@
%
% | \e@alloc type defcmd current top extended-top newname|
%
+% Note that if just a single allocation range is required
+% (not omitting a range up to 255 for inserts) then $-1$
+% should be used for the first upper bound argument, |#4|.
+%
% \begin{macrocode}
%<*2ekernel|latexrelease>
%<latexrelease>\IncludeInRelease{2015/01/01}{\e@alloc}{Extended Allocation}%
% \end{macrocode}
%
+% \changes{v2.0h}{2015/06/19}{extra braces in case arguments not single token}
% \begin{macrocode}
\def\e@alloc#1#2#3#4#5#6{%
\global\advance#3\@ne
- \e@ch@ck{#3}#4#5#1%
+ \e@ch@ck{#3}{#4}{#5}#1%
\allocationnumber#3\relax
\global#2#6\allocationnumber
\wlog{\string#6=\string#1\the\allocationnumber}}%
@@ -649,14 +656,12 @@
% \end{macrocode}
% \end{macro}
%
+% \changes{v2.0h}{2015/06/19}{delete spurious old definition of \cs{newtoks}}
% \begin{macro}{\newhelp}
-% \begin{macro}{\newtoks}
% \begin{macrocode}
\def\newhelp#1#2{\newtoks#1#1\expandafter{\csname#2\endcsname}}
-\def\newtoks{\alloc@5\toks\toksdef\@cclvi}
% \end{macrocode}
% \end{macro}
-% \end{macro}
%
% \begin{macro}{\maxdimen}
% \begin{macro}{\hideskip}