Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [e-tex]

{e-tex} is an extended version of TeX, from the NTS project.

6
votes
2answers
232 views

Can't use numexpr in horizontal mode

I am trying to learn to work with numexpr and am having some trouble with the basics, and etex_man has not been detailed enough to help in this case. Here is an MWE: \documentclass{article} \begin{...
0
votes
1answer
37 views

Avoiding page breaks after section headings followed by lists

I am writing a reference book in which every section heading is followed by an itemized list. I often get page breaks after the section heading and just one or two of the list items. In such cases I ...
9
votes
2answers
265 views

What is the difference between \unexpanded and \protected in ConTeXt?

EDIT: It turns out that \unexpanded in ConTeXt is different from \unexpanded in ε-TeX, so the earlier description doesn't apply. I'll update the question accordingly. From the ε-TeX manual: ...
3
votes
2answers
117 views

Define an active character inside a definition

\def\test{\catcode`!=\active \def!{test}} Of course the above code would not work because nothing is executed when TeX is reading the replacement text of a macro definition. ! gets catcode 12 anyway....
5
votes
1answer
111 views

\scantokens not playing nice with \def or \gdef etc

I working in a context where I'm changing catcodes and need to rescan the tokens before proceeding to process the text. But, I'm running into problems. Even with this bare minimum code, I still have ...
8
votes
1answer
301 views

Why the version of e-TeX extensions in LuaTeX is different?

Here is the very simple MWE: % Plain \number\eTeXversion\eTeXrevision \bye But the results differ by TeX engine (in TeX Live 2018): pdfTeX, XeTeX: 2.6 LuaTeX: 2.2 Considering only e-TeX ...
3
votes
0answers
99 views

How to add new primitives to e-TeX?

I am aware of this question \pdfstrcmp or \strcmp in pure TeX so I want to learn how to add the missing primitive \pdfstrcmp to e-TeX. From LaTeX3 source code expl3.lua: local function strcmp(A, B) ...
1
vote
1answer
74 views

Scantokens and Newlines

I'm having problems with the usage of scantokens. I'm trying to convert a list that I read in while under the effects of \obeylines. For some reason, any time I use scantokens on my list, it stops ...
9
votes
1answer
220 views

Is there a newmarks command?

Is there a way to allocate the e-tex marks with names, similar to things like \newtoks? It shouldn't be too hard to implement, I just want to know if it exists already. To be clear: e-tex makes ...
5
votes
4answers
332 views

Show outcome of addition

I am using a for-loop which initiates variable \n. How do I print the result of (\n+2)? I have read of e-Tex and LuaTex, but this all seems overkill for this simple operation? Thanks already!
2
votes
1answer
216 views

Tikz (spy and background) libraries with etex and pgfplots packages in beamer

I am working at a quite complicated beamer presentation and at some point I could not manage to use the \spy command of TikZ as desired. Trying to reproduce the problem, I came up with the ...
7
votes
1answer
125 views

primitives for detecting typesetting direction in pdftex and xetex?

Probably a duplicate, but... ...are there primitives for detecting the current typesetting direction in the said e-TeX based engines? I know that setting \TeXXeTstate > 0 enables \beginR, \beginL, \...
0
votes
1answer
397 views

No room from a new dimen with latest TeX

And I have a problem when compiling my Latex file (/usr/share/texlive/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex (/usr/share/texlive/texmf-dist/tex/generic/pgf/libraries/...
2
votes
1answer
87 views

Implementing \luaescapestring in plain e-TeX

I'm trying to implement \luaescapestring in plain e-TeX. My solution needs to be fully expandable, so that \immediate\write\luascript{ local file = "\luaescapestring{\something}" } works. The ...
2
votes
1answer
88 views

e-TeX and \newfam allocation

If PSTricks is used with e-TeX (from the latest TeX Live distribution), it appears that only the 7 families 9 trough 15 are available to \newfam. If PSTricks is used with tex (again, from the latest ...
8
votes
1answer
1k views

The difference between `\the\numexpr` and `\number\numexpr`

I wonder if there is any functional difference between \the\numexpr and \number\numexpr. Some obscure context where they would yield different results? (I'm obviously aware that \the and \number ...
24
votes
1answer
398 views

Why does the non-pdf latex engine behave differently from pdflatex?

In the question Enumerate after \label an admirable answer addresses the problem of how to label and link the theorem number when the theorem begins with an enumerated list, and while doing so, how to ...
7
votes
1answer
2k views

package autonum needs the obsolete etex package

With an up to date TL 2015, the following minimal example: % \RequirePackage{etex} \documentclass{article} \usepackage{l3keys2e} \usepackage{titlesec} \usepackage{adjustbox} \usepackage{footmisc} \...
1
vote
1answer
197 views

Problem in making a custom format for plain xetex

I have lots of macros and so would like to create a format out of them. I am using xetex as engine. Suppose format.ini is a file which looks like this: \input plain [lots of macros] \dump If ...
14
votes
3answers
1k views

etex package still seems to be necessary in LaTeX2e 2015/10/01?

I've experienced this problem after upgrading to TeX Live 2015 and getting newer versions of all my packages. (Presumably some of those package updates are to blame.) MVE: \documentclass{scrartcl} \...
2
votes
0answers
128 views

Which TeX engines support OFM fonts?

I'm extremely unhappy with the limitation of tfm fonts of 15 heights / 15 depths / 63 italic corrections. This is why I'm looking for a TeX engine which can load ofm fonts, probably etex, xetex or ...
3
votes
1answer
143 views

How to create marginal notes without 'opening up' the paragraph

This is an example with the \marginalstar macro from TeXbook. Without \marginalstar the paragraph is normal, with \marginalstar the paragraph is "opened up". \def\strutdepth{\dp\strutbox} \def\...
3
votes
1answer
451 views

How can I use \noexpand and \unexpanded without appending a space to the unexpanded tokens?

One of my current tasks involves composing an auxiliary file with extra commands to be loaded at a separate compilation. Here's an MWE: \documentclass{memoir} \newwrite\testaux \immediate\openout\...
2
votes
2answers
223 views

Question about e-TeX in TL

In TeX Live 2014 man etex reads: BUGS This version of e-TeX implements a number of optional extensions. In fact, many of these extensions conflict to a greater or lesser extent ...
12
votes
1answer
884 views

what is the equivalent of \reserveinserts in latex 2015

The release 2015 of LaTeX has included features of the etex.sty package. However, it does not have included the \reserveinserts command. My questions is very simple: what is the mechanism to use to ...
11
votes
4answers
269 views

How can I check whether two control sequences have the same name?

I'd like to test whether two custom control sequences have the same name, regardless of what they expand to or whether they're actually defined. For instance, \ifsamecsname\Foo\Foo should be ...
41
votes
1answer
14k views

formal syntax rules of \dimexpr \numexpr \glueexpr

After looking at various answers on the site and by looking at the documentation of e-tex, I am still wondering what is exactly allowed in the various types of expressions, i.e. \numexpr, \dimexpr and ...
14
votes
5answers
867 views

Ratio arithmetic in plain TeX

I would like to calculate the ratio between two dimensions and produce a dimensionless quantity for use in further calculation in the process. I seem to be unable to do so. Specifically, I run into ...
30
votes
3answers
2k views

Should I load eTeX and/or fixltx2e by default

So, inspired by Fixing LaTeX2e I've been wondering: Should I be loading fixltx2e and/or eTeX by default? Typically I start my documents as %Page layout here \documentclass[letterpaper, 11pt]{...
7
votes
2answers
421 views

Macro expanding to a file's contents?

How can I define a macro so that it expands to a file's contents?
21
votes
2answers
1k views

Could someone further elucidate expansion, catcodes, and scantokens…?

In response to my question "With TikZ is it possible to pass the node content through a preprocessor?", @MarkWibrow suggested a solution using \scantokens. {\catcode`\_=13 \gdef_{\rule[-1pt]{0.75em}{...
3
votes
2answers
259 views

\llap mystery with TeX--XeT

Consider \documentclass{article} \usepackage{xecolor} % loads fontspec by default \setmainfont{Times New Roman} \begin{document} \fontsize{60}{70}\selectfont TEST\llap{\textxecolor{red}{TEST}} \end{...
51
votes
3answers
7k views

What does the 'etex' package do, exactly?

I was creating a rather large LaTeX project, so I had to use many packages. This gave me an error No room for a new \dimen \newdimen \MPscratchDim while my editor(Kile) opened the file supp-pdf....
3
votes
1answer
127 views

Creating token blocks to hold environment contents and printing from them later

I have the following, works well for one toks block i.e \savedenvtoks but i want to create more toks blocks and i want the \savedenv to take a parameter indicating whichs toks block to add to, and i ...
6
votes
1answer
139 views

Why are my dimension calculations so far off?

I've got some macros storing information about various dimensions. When I start dividing by dimensions, though, I'm getting answers that don't make sense. \documentclass{article} \usepackage[...
6
votes
2answers
170 views

ifetex always true

I am working on a document preamble that allows me to compile a document with pdlatex and with xelatex. I found that the \ifetex condition to check whether the document is going through e-tex is ...
1
vote
0answers
84 views

No room for a new \dimen despite of loading etex [duplicate]

After upgrading to TeX Live 2013 one of my books does not compile any longer. I do load etex, but still have not enough room. What can I do? Back in 1994 I had a colleague who hacked the LaTeX source ...
19
votes
1answer
1k views

Why does \numexpr integer division round rather than truncate?

In my use of \numexpr's integer division / I have never gotten any advantage from the fact that it rounds rather than truncates. TeX's own \divide truncates. If we were dealing with floating point ...
5
votes
1answer
2k views

Usage of the \dimexpr command

I have MiKTeX 2.3 and its version of e-TeX does not support \dimexpr command. I do not want to update this MiKTeX now and wonder, is it possible to define the \dimexpr command, probably with use of ...
3
votes
1answer
381 views

Rubber with etex package

I am using rubber to compile my documents. In some of them (usually Beamer presentations), I use the etex package. In such a case, rubber aims to use as the command elatex to invoke the e-TeX engine ...
4
votes
1answer
621 views

e-Tex and TexWriter

I'm using TexWriter as a LaTeX editor on my iPad. When I try to compile a document I get the following error:"!package etoolbox Error: Not running under e-TeX." I'm also using enumitem package. Is ...
2
votes
2answers
439 views

Errors produces when using `\readline`

This question, while related to this earlier question of mine, is less about removing content from the beginning of each line and more about how to preprocess lines of a file as it is read in. Here ...
0
votes
1answer
3k views

etex.sty not found!

I copy .tex file from MikTeX to Scientific Word; in MikTeX, everything is fine; but in SW, I got etex.sty not found. error. I copy the file stex.sty from MikTeX to SW; then I go the following error ...
19
votes
2answers
776 views

Use of \everyeof and \endlinechar with \scantokens

The e-TeX \scantokens primitive allows retokenization of input. However, it is almost always used in a group where \everyeof and \endlinechar are set (see for example Can I convert a string to catcode ...
15
votes
1answer
4k views

Can someone explain what is the 'extended mode'?

During latex compilation with pdflatex+shellescape, the compiler enters: This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012) entering extended mode And stays there for a while, before ...
6
votes
1answer
435 views

List of all post original TeX control commands

Is there a well documented list of all control commands added by all post Knuth's Tex like PdfTeX, e-TeX, XeTex, LuaTeX?
6
votes
1answer
168 views

biblatex and etex with active equal sign (=)

Please why does etex.sty fail to load with active =? \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[turkish]{babel} \catcode`\==13 \makeatletter \bbl@activate{=} \makeatother \...
49
votes
4answers
2k views

Who *doesn't* use e-TeX?

I was just browsing the new questions and noticed egreg's recent answer, in which he uses a certain extension from e-TeX and cautions the reader that it is not compatible with Knuth TeX. And so I ...
13
votes
1answer
361 views

\lastnodetype not working as expected in luaTeX

I'm currently experimenting with the linebreak_filter of luatex and when using it to change/replace the linebreaking algorithm the \lastnodetype command stopped working. A MWE is the following: \def\...
7
votes
1answer
453 views

Replacement for \unexpanded without eTeX extension

As comment on Can the extended register pool be used for \newinsert?, there is a reference to Dealing with tons of floats. It is interesting but uses \unexpanded: \edef\@freelist{% \unexpanded\...