summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/etex-pkg/etex.sty')
-rw-r--r--Master/texmf-dist/tex/latex/etex-pkg/etex.sty30
1 files changed, 29 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/latex/etex-pkg/etex.sty b/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
index 19c24b6ad8f..4558369d7bc 100644
--- a/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
+++ b/Master/texmf-dist/tex/latex/etex-pkg/etex.sty
@@ -19,7 +19,8 @@
\ProvidesPackage{etex}
% [1997/08/12 v0.1 eTeX basic definition package (DPC)]
% [1998/03/26 v2.0 eTeX basic definition package (PEB)]
- [2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)]
+% [2015/03/02 v2.1 eTeX basic definition package (PEB,DPC)]
+ [2015/07/06 v2.2 eTeX basic definition package (PEB,DPC)]
\DeclareOption{grouptypes}{\catcode`\G=9}
\DeclareOption{interactionmodes}{\catcode`\I=9}
@@ -95,6 +96,33 @@
}
\fi
+% 2.2
+% Check if the new latex 2015/01/01 allocation is already using
+% extended reisters. If so it is too late to change allocation scheme.
+% Older versions of LaTeX would have given an error when the classic
+% TeX registers were all allocated, but newer formats allocate from
+% the extended range, so usually this package is not needed.
+\@tempswafalse
+\ifnum\count10>\@cclv\@tempswatrue\else
+\ifnum\count11>\@cclv\@tempswatrue\else
+\ifnum\count12>\@cclv\@tempswatrue\else
+\ifnum\count13>\@cclv\@tempswatrue\else
+\ifnum\count14>\@cclv\@tempswatrue\else
+\ifnum\count15>\@cclv\@tempswatrue
+\fi\fi\fi\fi\fi\fi
+
+\if@tempswa
+\PackageWarningNoLine{etex}{%
+Extended allocation already in use.\MessageBreak
+Aborting etex.sty.\MessageBreak
+To force etex package to load, add\MessageBreak
+\string\RequirePackage{etex}\MessageBreak
+at the start of the document}
+\expandafter\endinput\fi
+
+% End of 2.2 addition.
+
+
\def\eTeX{%
$\m@th\varepsilon$-\TeX}