From 940e9d28df263fba766ec8f232419091cb735cff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Sun, 23 May 2010 14:21:18 +0200 Subject: Allocate attributes from 1. --- luatexbase-attr.dtx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'luatexbase-attr.dtx') diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx index cf310d0..dd01e01 100644 --- a/luatexbase-attr.dtx +++ b/luatexbase-attr.dtx @@ -288,11 +288,14 @@ See source file '\inFileName' for details. % % \subsection{User macros} % -% The allocaton macro. +% The allocaton macro. Unlike other registers, allocate starting from 1. +% Some code (eg, font handling coming from Con\tex{}t) behaves strangely +% with \verb+\attribute0+ and since there is plenty of room here, it +% doesn't seem bad to ``loose'' one item in order to avoid this problem. % % \begin{macrocode} \newcount\lltxb@attribute@alloc -\lltxb@attribute@alloc\m@ne +\lltxb@attribute@alloc\z@ \def\newluatexattribute#1{% \ifnum\lltxb@attribute@alloc<65535\relax \global\advance\lltxb@attribute@alloc\@ne -- cgit v1.2.3