summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex3/xor/xo-alloc.dtx
blob: 05250715ccb5f65d30b416b663b0e1694473d15e (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
% \iffalse
%%
%% (C) Copyright 1999-2000 Frank Mittelbach, David Carlisle, Chris Rowley
%% All rights reserved.
%%
%% Not for general distribution. In its present form it is not allowed
%% to put this package onto CD or an archive without consulting the
%% the authors.
%% 
% \fi
%
%    \begin{macrocode}
\def\@tempa#1: #2.dtx,v #3 #4 #5 #6 #7${
  \ProvidesPackage{#2}[#4 #3 #5 #6]}
\@tempa$Id: xo-alloc.dtx,v 1.4 2000/08/11 07:13:34 latex3 Exp $
%    \end{macrocode}
%
%
% Ignore white space in this package.
%    \begin{macrocode}
\IgnoreWhiteSpace
%    \end{macrocode}
%
% |\footins| is FD, should probably move to FE
%
% |\@footins| is FE, should probably go and be replaced by a box and skip allocation
% they don't need to be same number, except for compatibility reasons.
%
% |\@kludgeins| was EA maybe can go, depending on how enlargethispage to be implemented.
%               for now, move to FC (which was bx@A
%    \begin{macrocode}
\chardef\@kludgeins="FC\relax
\global\dimen\@kludgeins \maxdimen
\global\count\@kludgeins 1000
\global\dimen\@kludgeins\z@
\global\skip\@kludgeins\z@
\global\setbox\@kludgeins\box\voidb@x
%    \end{macrocode}
%
%    \begin{macrocode}
\insc@unt"FC\relax
%    \end{macrocode}
%
% count dimen skip  no longer bounded by insertion allocation.
% toks now bounded by insertions.
%    \begin{macrocode}
\def\newcount{\alloc@0\count\countdef\@kludgeins}
\def\newdimen{\alloc@1\dimen\dimendef\@kludgeins}
\def\newskip{\alloc@2\skip\skipdef\@kludgeins}
\def\newtoks{\alloc@5\toks\toksdef\insc@unt}
%    \end{macrocode}
%
%    \begin{macrocode}
\def\newinsert#1{\global\advance\insc@unt \m@ne
  \ch@ck4\insc@unt\box
  \ch@ck5\insc@unt\toks
  \allocationnumber\insc@unt
  \global\chardef#1\allocationnumber
  \wlog{\string#1=\string\insert\the\allocationnumber}}
%    \end{macrocode}
%
%    \begin{macrocode}
\newinsert\bx@A
\newinsert\bx@B
\newinsert\bx@C
\newinsert\bx@D
\newinsert\bx@E
\newinsert\bx@F
\newinsert\bx@G
\newinsert\bx@H
\newinsert\bx@I
\newinsert\bx@J
\newinsert\bx@K
\newinsert\bx@L
\newinsert\bx@M
\newinsert\bx@N
\newinsert\bx@O
\newinsert\bx@P
\newinsert\bx@Q
\newinsert\bx@R
%    \end{macrocode}
%
% like |\@next| but allocates to list if empty (so doesn't have the
% 4th argument) There is a hidden 3rd argument, picked up by |\@xnext|.
%    \begin{macrocode}
\def\@allocating@next#1#2{
  \ifx#2\@empty
    \xdef#2{\noexpand\@elt\csname bx@\the\insc@unt\endcsname}
    \expandafter\newinsert\csname bx@\the\insc@unt\endcsname
  \fi
  \expandafter\@xnext #2\@@#1#2}
%    \end{macrocode}
%
%    \begin{macrocode}
%    \end{macrocode}
%
%    \begin{macrocode}
%    \end{macrocode}
%
%    \begin{macrocode}
%    \end{macrocode}
%
%    \begin{macrocode}
%    \end{macrocode}
%
%    \begin{macrocode}
%    \end{macrocode}

%
% \endinput
\endinput
%
% $Log: xo-alloc.dtx,v $
% Revision 1.4  2000/08/11 07:13:34  latex3
% added header
%
% Revision 1.3  2000/06/13 20:54:46  latex3
% made this a dtx file
%
% Revision 1.2  2000/02/22 01:03:55  david
% *** empty log message ***
%
% Revision 1.1  2000/02/22 00:52:52  david
% Initial revision
%