summaryrefslogtreecommitdiff
path: root/luatexbase-regs.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'luatexbase-regs.dtx')
-rw-r--r--luatexbase-regs.dtx14
1 files changed, 10 insertions, 4 deletions
diff --git a/luatexbase-regs.dtx b/luatexbase-regs.dtx
index 89c2313..5b0c648 100644
--- a/luatexbase-regs.dtx
+++ b/luatexbase-regs.dtx
@@ -117,6 +117,8 @@ See source file '\inFileName' for details.
% \luatex.
% \end{abstract}
%
+% \tableofcontents
+%
% \section{Documentation}
%
% Since the \plaintex and \latex formats are both frozen, they fail to take
@@ -147,8 +149,6 @@ See source file '\inFileName' for details.
% degraded performance due to implementation details, but with \luatex the
% performance is uniform, so we just do it.
%
-% \clearpage
-%
% \section{Implementation}
%
% \begin{macrocode}
@@ -211,7 +211,7 @@ See source file '\inFileName' for details.
\let\x\ProvidesPackage
\fi
\expandafter\endgroup
-\x{luatexbase-regs}[2010/01/21 v0.1 Registers allocation for LuaTeX (mpg)]
+\x{luatexbase-regs}[2010/01/21 v0.1 Registers allocation for LuaTeX]
% \end{macrocode}
%
% Make sure \luatex is used.
@@ -238,7 +238,7 @@ See source file '\inFileName' for details.
\fi
% \end{macrocode}
%
-% \subsection{Main content}
+% \subsection{Ensure etex.sty is loaded}
%
% If running \latex, load \file{etex.sty}. If not, either
% \file{etex.src} was loaded at format generation time, or we cannot do
@@ -272,6 +272,8 @@ See source file '\inFileName' for details.
\else
% \end{macrocode}
%
+% \subsection{Adapt range}
+%
% First, increase the upper bound for all kinds of registers. Copy code to
% avoid defining a macro.
%
@@ -286,6 +288,8 @@ See source file '\inFileName' for details.
\ifnum\count276=32768 \count276=65536 \fi
% \end{macrocode}
%
+% \subsection{Patch macros that used \cs{mathchardef}}
+%
% |\box| registers and |\mark|s were previously defined
% using |\mathchardef| since it had the biggest range under \etex
% (15-bit number). However, this is not enough for \luatex's extended
@@ -394,6 +398,8 @@ See source file '\inFileName' for details.
\the\toks0
% \end{macrocode}
%
+% \subsection{Make room for inserts}
+%
% Finally, make allocation of |\count|, |\dimen|, |skip| and
% |\box| start with numbers $>255$, in order to free the lower numbers
% for insertions. Be careful with |\new...| macros which are