LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Thu, 16 Sep 2010 17:48:15 +0100
Reply-To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Message-ID:
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
In-Reply-To:
Content-Type:
text/plain; charset=ISO-8859-1; format=flowed
From:
Joseph Wright <[log in to unmask]>
Parts/Attachments:
text/plain (44 lines)
On 16/09/2010 13:42, Heiko Oberdiek wrote:
> \outer\def \reserveinserts#1{%
>    \begingroup
>      \@tempcnta=\numexpr#1\relax
>      \ifnum\@tempcnta<\z@
>        \PackageWarning{etex}{%
>          Negative number (\the\@tempcnta) for %
>          \@backslashchar reserveinserts,\MessageBreak
>          assuming 0%
>        }%
>        \@tempcnta=\z@
>      \fi
>      \count@\count10 % count
>      \ifnum\count11>\count@ \count@\count11 \fi % dimen
>      \ifnum\count12>\count@ \count@\count12 \fi % skip
>      \ifnum\count14>\count@ \count@\count14 \fi % box
>      \count@=\numexpr\et@xins-\count@\relax
>      \PackageInfo{etex}{%
>        Maximum for \@backslashchar reserveinserts is \the\count@
>      }%
>      \ifnum\@tempcnta>\count@
>        \PackageError{etex}{%
>          \the\@tempcnta\space insertion register%
>          \ifnum\@tempcnta=\@ne \space is \else s are \fi
>          requested,\MessageBreak
>          \ifnum\count@<\@ne
>            but no more registers can be reserved%
>          \else
>            but only \the\count@\space register%
>            \ifnum\count@=\@ne\else s\fi\space can be reserved%
>          \fi
>        }\@ehc
>        \@tempcnta=\count@
>      \fi
>      \global\insc@unt\numexpr\et@xins-\@tempcnta\relax
>    \endgroup
> }

As Chris says, this seems more sensible than the current definition as 
it gives meaningful messages when it's not possible to reserve the space 
requested. Now, who's actually in charge of etex.sty?
-- 
Joseph Wright

ATOM RSS1 RSS2