Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

etex.sty : Why e-TeX ?

386 views
Skip to first unread message

GL

unread,
Jul 20, 2012, 7:02:14 AM7/20/12
to
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 ?

FC

PS: For the CTAN team
at:
http://www.tex.ac.uk/tex-archive/help/Catalogue/entries/etex-pkg.html

there is the sentence:
"The etoolbox and etextools packages provide macros that make more
sophisticated use of e-TeX�s facilities."

As the author of etextools, I can say that this package is rather
experimental or for educational purpose, and to be honest not really
safe. Mention of etoolbox (from P Lehman) would be enough !

Thanks.

Lars Madsen

unread,
Jul 20, 2012, 7:23:20 AM7/20/12
to
aren't those extensions part of the etex kernel and the etex package
just enables more than is enabled by default.

plain tex and etex are not the same.

LaTeX are these days based upon etex.

--

/daleif (remove RTFSIGNATURE from email address)

Memoir and mh bundle maintainer
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://math.au.dk/videnudveksling/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.minimalbeispiel.de/mini-en.html

Joseph Wright

unread,
Jul 20, 2012, 7:40:46 AM7/20/12
to
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.

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.
--
Joseph Wright

Heiko Oberdiek

unread,
Jul 20, 2012, 12:39:05 PM7/20/12
to
Lars Madsen <dal...@RTFMSIGNATUREimf.au.dk> wrote:

> LaTeX are these days based upon etex.

You mean, calling "latex" or "pdflatex" (e.g., MiKTeX or TeX Live)
include the enabled e-TeX extensions.

But LaTeX itself does not know about e-TeX at all. In contrary,
you have to use package `etex' to extend the register allocation
mechanism, for example.

--
Heiko Oberdiek

Lars Madsen

unread,
Jul 20, 2012, 12:41:54 PM7/20/12
to
I meant both call pdfetex

GL

unread,
Jul 20, 2012, 1:17:43 PM7/20/12
to
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.

Joseph Wright

unread,
Jul 20, 2012, 1:49:52 PM7/20/12
to
On 20/07/2012 18:17, GL wrote:
> So that etex.src is only loadable by initex.

Well yes.

> 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...

I'm confused as to what you are up to. If you want the plain format with
e-TeX allocation routine, what's wrong with using "etex"?
--
Joseph Wright

GL

unread,
Jul 20, 2012, 9:57:37 PM7/20/12
to
Le 20/07/2012 19:49, Joseph Wright a �crit :
Yes it is definitely in the format (preloaded format etex... ok)
Thanks ! I was really confused...

However, \globtoks and related are \outer in etex.src and not in
etex.sty
I really hate \outer defs, even for \reverseinserts there is no
point defining it as \outer.

Ciao.

Robin Fairbairns

unread,
Aug 30, 2012, 11:26:14 AM8/30/12
to
GL <goua...@gmail.com> writes:

> 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.

it extends the latex kernel. i've never investigated whether it could
(simply) be modified for use with plain tex.

i have modified the catalogue entry to mention latex explicitly.

> Am I missing something on CTAN ?
>
> PS: For the CTAN team
> at:
> http://mirror.ctan.org/help/Catalogue/entries/etex-pkg.html
>
> there is the sentence:
> "The etoolbox and etextools packages provide macros that make more
> sophisticated use of e-TeX�s facilities."
>
> As the author of etextools, I can say that this package is rather
> experimental or for educational purpose, and to be honest not really
> safe. Mention of etoolbox (from P Lehman) would be enough !

i don't believe i understood that inflection from your upload
announcement (whenever that was), and i've not read the documentation
right through (the fancy colour schemes and other decorations have
defeated my aged old eyes).

whatever, i've added a statement to the catalogue entry to the effect
that it is an experimental package.
--
Robin Fairbairns, Cambridge
sorry about all this posting. i'll go back to sleep in a bit.
0 new messages