summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/elocalloc/elocalloc.sty
blob: dd273773039f3018414a53de72b93a996c6f6713 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
%%
%% This is file `elocalloc.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% elocalloc.dtx  (with options: `package')
%% 
%% Source File: textcase.dtx
%% Copyright 2015 David Carlisle
%%
%% This file may be distributed under the terms of the LPPL.
%% See README for details.
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{elocalloc}
       [2015/05/09 v0.01 local allocation for LaTeX 2015+ (DPC)]
\ifx\e@alloc\@undefined
\RequirePackage{etex}
\expandafter\endinput
\fi
\ifx\locbox\@undefined\else
\PackageWarning{elocalloc}{%
   \string\locbox\space already defined, stopping}
\expandafter\endinput
\fi
\def\eloc@lloc#1#2#3#4#5{%
  \def\extrafloats##1{%
    \PackageWarning{elocalloc}{\string\extrafloats\space ignored}}
  \e@ch@ck{#1}#2\z@#3%
  \expandafter\e@alloc@chardef\expandafter#2%
                         \the\numexpr#2-1\relax
   \allocationnumber=#2%
  #3#5#2}
\def\loccount {\eloc@lloc{\count 10}\float@count\countdef\count}
\def\locdimen {\eloc@lloc{\count 11}\float@count\dimendef\dimen}
\def\locskip  {\eloc@lloc{\count 12}\float@count\skipdef\skip}
\def\locmuskip{\eloc@lloc{\count 13}\e@alloc@top\muskipdef\muskip}
\def\locbox   {\eloc@lloc{\count 14}\float@count\e@alloc@chardef\box}
\def\loctoks  {\eloc@lloc{\count 15}\e@alloc@top\toksdef\toks}
\def\locmarks {\eloc@lloc{\count256}\e@alloc@topt\e@alloc@chardef\marks}
\endinput
%%
%% End of file `elocalloc.sty'.