Tagged Questions
7
votes
1answer
219 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{%
...
9
votes
1answer
633 views
Expansion in \numexpr…\relax versus \pdfstrcmp
The \numexpr...\relax construction in eTeX allows to evaluate numerical expressions, and it expands tokens fully as it goes.
The \pdfstrcmp{...}{...} construction in pdfTeX lets us compare two lists ...
14
votes
3answers
666 views
Why does \dimexpr swallow \relax?
Following the comments at Doing maths with distance values in LaTeX source code:
+1 for teaching me that \dimexpr can optionally swallow a \relax. Yesterday I tried to use \relax as a delimiter ...
10
votes
1answer
400 views
How to do \scantokens inside \edef without triggering “Runaway definition”
I'm trying to find a way to use the e-TeX \scantokens command inside [the equivalent of] an \edef (well, actually an \xdef, but presumably this does not make any real difference since that's just the ...
6
votes
3answers
181 views
Are we inside an edef?
How would you test whether we are in an expansion only context (i.e., \edef, \xdef, \write,...) or not? The only ways I could think of leave things behind (but the full expansion of that extra stuff ...