Article View: comp.text.tex
Article #2125want full evaluation like \edef
From: Ed Robertson
Date: Wed, 12 Aug 1992 21:34
Date: Wed, 12 Aug 1992 21:34
21 lines
1224 bytes
1224 bytes
The primitive command \edef expands its second arguement before
assigning it (as a macro definition) to its first arguement.
However, primitive commands inside the second arguement are not
executed.
This comes up when I have, from some library, a macro \libmac which
won't evaluate properly is a strange environment. So instead of
saying
\strangeenvironment{ ... \libmac ... }
I try
\edef\temp{\libmac}
\strangeenvironment{ ... \temp ... }
This works fine if \libmac has no primitive commands. But if \libmac
has, say, a nested \edef, the \edef is passed thru with other partial
evaluations of \libmac.
What I want is a \fulledef, so that
\fulledef\temp{\libmac}
fully evaluates \libmac before assigning it to \temp. There are obvious
problems specifying how far to evaluate, so such a \fulledef would
need to be used with care.
Technical Details
Message-ID:
<1992Aug12.163437.12527@news.cs.indiana.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!news.cs.indiana.edu!edrbtsn@bigeye.cs.indiana.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!mips!news.cs.indiana.edu!edrbtsn@bigeye.cs.indiana.edu From: edrbtsn@bigeye.cs.indiana.edu (Ed Robertson) Newsgroups: comp.text.tex Subject: want full evaluation like \edef Message-ID: <1992Aug12.163437.12527@news.cs.indiana.edu> Date: 12 Aug 92 21:34:13 GMT Organization: Indiana University, Bloomington Lines: 21