Questions tagged [e-tex]

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

Filter by
Sorted by
Tagged with
1 vote
2 answers
85 views

Wrapping long lines with no spaces while respecting kerning

There were many posts asking about breaking long string of text/digits (with no spaces) into justified lines. This post is one example. The mostly-agreed-upon solution seems to be adding a zero-width ...
Ruixi Zhang's user avatar
  • 9,563
3 votes
2 answers
190 views

Understanding scantokens

I am trying to work with \scantokens, but apparently, I don't really understand it. I want to detokenize some sequence into a register \S: \let\ea\expandafter \newtoks\S \ea\S\ea{\detokenize{\textbf{f}...
Bubaya's user avatar
  • 2,279
0 votes
1 answer
103 views

Compiling with hilatex fails

I'm trying out the new-ish hitex format that produces special HINT files made to be viewed on a screen. The plain format seems to work (based on the limited examples I've tried) but the hilatex format ...
mbert's user avatar
  • 4,151
3 votes
1 answer
166 views

What's the \synctex primitive? Where is it documented?

The question is in the title. (needless to say I tried texdoc synctex|etex_man|pdftex|pdftex-a|xetex|luatex and the only thing I found is that it's enabled by the extraprimitives function in LuaTeX. ...
user202729's user avatar
  • 7,123
0 votes
0 answers
68 views

Strange ```tableofcontents```error in XeTeX

I am currently typesetting a book with XeTeX and there's a strange error in overleaf: \alloc@ ...else \errmessage {No room for a new #2} \fi \fi l.41 ...
pahohu's user avatar
  • 229
1 vote
1 answer
283 views

How to remove the etex warning when using cryptocode with the llncs document class?

When using the cryptocode package along with the llncs document class, as provided by the Overleaf template, etex complains with the following warning: /usr/local/texlive/2020/texmf-dist/tex/latex/...
Tristan Nemoz's user avatar
1 vote
2 answers
2k views

Package etex Warning : Extended allocation already in use

When I try to compile my document, I get the following warning and errors. Here is the start of my document: \documentclass{birkmono} %\usepackage[round]{natbib} %\usepackage[latin1]{inputenc} \...
Jean-Pierre's user avatar
7 votes
2 answers
1k views

How to divide in LaTeX without it rounding or truncating?

I'm working on a diagram and I'm pretty new to LaTeX, so I've decided to try to do it using math instead of statically assigned values. I have come up with the following: \newcommand\qoffset{14} \...
Taggagii's user avatar
3 votes
2 answers
197 views

Macro techniques using e-TeX

The e-TeX extensions were intended to address some of the shortcomings of Knuth's original TeX, and since they are required by LaTeX2e for a while now, most package authors can rely on their presence. ...
wave's user avatar
  • 841
2 votes
0 answers
41 views

How to fix incompatibilities between etex package and new filecontents? [duplicate]

Since filecontents is usable into document (LaTeX2e <2019-10-01> patch level 3), the etex package breaks the filecontents new \write... With TeXLive 2018, the following code is ok: \documentclass{...
Paul Gaborit's user avatar
  • 70.8k
20 votes
2 answers
762 views

Expandable test for an empty token list—methods, performance, and robustness

With ε-TeX, the go-to method for testing if a <token-list> is empty is the following test: \if\relax\detokenize{<token-list>}\relax % empty \else % not empty \fi The method ...
Phelype Oleinik's user avatar
3 votes
1 answer
201 views

How to prepare a chg file, tie and tangle: tex.web tex.ch etex.ch and etex.sys to a new etex.web?

I need the following changes for tex.web in tex.ch. The section begins line 707. The actual change concerns the last two lines. @ The ASCII code is ``standard'' only to a certain extent, since many ...
CarpeDiemKopi's user avatar
1 vote
1 answer
137 views

How \middle is defined in mleftright.sty?

Process the following example with etex: \input mleftright.sty $\sin\mleft(x^2\middle|y^2\mright)$ \end I wonder what is the definition of \middle - I can't find it anywhere.
Igor Liferenko's user avatar
0 votes
1 answer
322 views

How to manual create a format which includes LaTeX and a package e.g. calculator for a bare eTeX?

I'm able to make fmt-files with the packages mylatex or mylatexformat in my Tex Live 2019 installation but I need a file mycalclator.tex for a use case as follows einitex *mycalculator.tex \dump ...
CarpeDiemKopi's user avatar
6 votes
2 answers
2k views

How to make an e-TeX WebAssembly with Jim Fowler's WEB/TeX pascal to WASM compiler web2js?

I have a TeX Live 2019 distribution installed on Windows 10 and want to run a preloaded LaTeX based on e-TeX (with these packages among others: Calculator, Calculus, TikZ, CircuiTikZ) under ...
CarpeDiemKopi's user avatar
12 votes
2 answers
3k views

Cannot use `\numexpr` in horizontal mode

I try to learn to work with \numexpr and have some trouble with the basics. etex_man has not been detailed enough to help in this case. Here is an MWE: \documentclass{article} \begin{document} Hi \...
Zach Boyd's user avatar
  • 354
0 votes
1 answer
66 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 ...
KeithB's user avatar
  • 451
10 votes
2 answers
620 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: Protected ...
G.S.'s user avatar
  • 125
5 votes
4 answers
452 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....
user5938's user avatar
  • 495
5 votes
1 answer
192 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 ...
A.Ellett's user avatar
  • 50.5k
8 votes
1 answer
357 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 ...
ManTingFang's user avatar
3 votes
0 answers
181 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) ...
An Hoa's user avatar
  • 291
2 votes
1 answer
174 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 ...
A Gold Man's user avatar
  • 1,428
9 votes
1 answer
317 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 ...
A Gold Man's user avatar
  • 1,428
5 votes
4 answers
649 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!
Robin Egberts's user avatar
2 votes
1 answer
419 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 ...
Axel Krypton's user avatar
  • 1,083
6 votes
1 answer
166 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, \...
AlexG's user avatar
  • 54.9k
0 votes
1 answer
555 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/...
nimag42's user avatar
  • 11
2 votes
1 answer
117 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 ...
Witiko's user avatar
  • 1,216
2 votes
1 answer
120 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 ...
John Frampton's user avatar
9 votes
1 answer
3k 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 ...
Sašo Živanović's user avatar
26 votes
1 answer
506 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 ...
barbara beeton's user avatar
6 votes
1 answer
4k 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} \...
Denis Bitouzé's user avatar
1 vote
1 answer
338 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 ...
User's user avatar
  • 2,530
14 votes
3 answers
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} \...
Lightness Races in Orbit's user avatar
2 votes
0 answers
163 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 ...
Igor Liferenko's user avatar
3 votes
1 answer
215 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\...
Igor Liferenko's user avatar
3 votes
1 answer
683 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\...
Simon Kuang's user avatar
  • 1,861
2 votes
2 answers
286 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 ...
Igor Liferenko's user avatar
12 votes
1 answer
2k 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 ...
Maïeul's user avatar
  • 11k
11 votes
4 answers
354 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 ...
jub0bs's user avatar
  • 58.9k
61 votes
1 answer
38k 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 ...
Pieter Stroobants's user avatar
14 votes
5 answers
1k 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 ...
1010011010's user avatar
  • 6,357
30 votes
3 answers
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]{...
Canageek's user avatar
  • 17.9k
7 votes
2 answers
583 views

Macro expanding to a file's contents?

How can I define a macro so that it expands to a file's contents?
SJU's user avatar
  • 1,721
23 votes
2 answers
2k 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}{...
A.Ellett's user avatar
  • 50.5k
3 votes
2 answers
355 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{...
user avatar
54 votes
3 answers
13k 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....
Thanos's user avatar
  • 12.4k
3 votes
1 answer
206 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 ...
Ephraim Ncory's user avatar
6 votes
1 answer
159 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[...
A.Ellett's user avatar
  • 50.5k