Le 20/07/2012 13:40, Joseph Wright a �crit :
> On 20/07/2012 12:02, GL wrote:
>> Well... the matter sounds somewhat like a provocation.
>> But for such a "package" that extends the plain TeX kernel,
>> I'd expected one could load it without LaTeX.
>>
>> Am I missing something on CTAN ?
>
> On my system, etex is built using etex.ini which reads
>
> % Thomas Esser, 1998. public domain.
> \input etex.src
> \dump
> \endinput
>
> etex.src is a bit long to post here, but it makes broadly the same
> changes to the allocation routine as are made by etex.sty to the LaTeX2e
> code.
Yes thanks. Unfortunately, etex.src loads language.def that reinputs
hyphen.tex and at that time
etex.src line 267: \let \patterns=\et@xpatterns % <the primitive>
So that the trick to skip \patterns is not active. And \patterns is
only allowed with INITEX...
So that etex.src is only loadable by initex.
Well, I've my own version of etex.sty for plain.tex but it would be good
to have a CTAN etex.sty that detects LaTeX or not, in the way Oberdiek
does for intcalc.sty or kvsetkeys.sty for example...
> etex.sty does have some parts which are LaTeX-dependent, for example the
> load-time options, although I guess it could have been written such that
> these were skipped for plain.
>
> I guess the key difference here is that etex as a format can clearly
> build the changes in directly, but for LaTeX2e that's not possible as
> the team would have to have altered latex.ltx to do that.
Thanks for the information.
Yours sincerely.