Questions tagged [e-tex]
{e-tex} is an extended version of TeX, from the NTS project.
83
questions
1
vote
2
answers
80
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 ...
3
votes
2
answers
160
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}...
0
votes
0
answers
74
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 ...
3
votes
1
answer
161
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. ...
0
votes
0
answers
63
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 ...
1
vote
1
answer
262
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/...
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}
\...
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}
\...
3
votes
2
answers
189
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. ...
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{...
20
votes
2
answers
738
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 ...
3
votes
1
answer
191
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
...
1
vote
1
answer
133
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.
0
votes
1
answer
311
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
...
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 ...
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 \...
0
votes
1
answer
65
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 ...
10
votes
2
answers
595
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 ...
5
votes
2
answers
376
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
1
answer
187
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
1
answer
355
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
0
answers
180
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)
...
2
votes
1
answer
167
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
1
answer
311
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
4
answers
640
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
1
answer
411
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 ...
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, \...
0
votes
1
answer
546
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
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 ...
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 ...
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 ...
26
votes
1
answer
504
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 ...
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}
\...
1
vote
1
answer
334
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
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}
\...
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 ...
3
votes
1
answer
211
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
1
answer
677
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
2
answers
285
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
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 ...
11
votes
4
answers
351
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 ...
59
votes
1
answer
37k
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
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 ...
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]{...
7
votes
2
answers
579
views
Macro expanding to a file's contents?
How can I define a macro so that it expands to a file's contents?
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}{...
3
votes
2
answers
344
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{...
54
votes
3
answers
12k
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
1
answer
200
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
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[...