summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etex-pkg
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2015-03-08 22:31:29 +0000
committerKarl Berry <karl@freefriends.org>2015-03-08 22:31:29 +0000
commit24ef94ac17615157dda1e8ab34500b982dfd4a6c (patch)
tree60b7d5dee2fd6de0f315216d0cccfcffa81649bb /Master/texmf-dist/tex/latex/etex-pkg
parentf11bc4a3783c5dfbcbb598604296e6048b527bf2 (diff)
etex-pkg (8mar15)
git-svn-id: svn://tug.org/texlive/trunk@36465 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/etex-pkg')
-rw-r--r--Master/texmf-dist/tex/latex/etex-pkg/etex.sty21
1 files changed, 17 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/etex-pkg/etex.sty b/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
index 593f8cf3cba..19c24b6ad8f 100644
--- a/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
+++ b/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
@@ -1,6 +1,6 @@
% \iffalse meta-comment
%
-% Copyright 1997, 1998, 2008 LaTeX Project and Peter Breitenlohner.
+% Copyright 1997, 1998, 2008 2015 LaTeX Project and Peter Breitenlohner.
%
% This file (etex.sty) may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3 of
@@ -18,7 +18,8 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{etex}
% [1997/08/12 v0.1 eTeX basic definition package (DPC)]
- [1998/03/26 v2.0 eTeX basic definition package (PEB)]
+% [1998/03/26 v2.0 eTeX basic definition package (PEB)]
+ [2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)]
\DeclareOption{grouptypes}{\catcode`\G=9}
\DeclareOption{interactionmodes}{\catcode`\I=9}
@@ -157,8 +158,20 @@
\et@xins=\insc@unt % \et@xins=255 % allocates insertions 254, 253, ...
-%% We don't change the LaTeX definitions of \newcount, etc., but the
-%% \alloc@ macro doing the actual work is redefined.
+
+%% To ensure working in LaTeX 2015 release do define \newcount etc
+%% with their pre 2015 LaTeX definitions
+\def\newcount{\alloc@0\count\countdef\insc@unt}
+\def\newdimen{\alloc@1\dimen\dimendef\insc@unt}
+\def\newskip{\alloc@2\skip\skipdef\insc@unt}
+\def\newmuskip{\alloc@3\muskip\muskipdef\@cclvi}
+\def\newbox{\alloc@4\box\chardef\insc@unt}
+\def\newtoks{\alloc@5\toks\toksdef\@cclvi}
+\def\newread{\alloc@6\read\chardef\sixt@@n}
+\def\newwrite{\alloc@7\write\chardef\sixt@@n}
+\def\new@mathgroup{\alloc@8\mathgroup\chardef\sixt@@n}
+\let\newfam\new@mathgroup
+\def\newlanguage{\alloc@9\language\chardef\@cclvi}
%% When the normal register pool for \count, \dimen, \skip, \muskip,
%% \box, or \toks registers is exhausted, we switch to the extended pool.