On 15-7-2011 12:20, Taco Hoekwater wrote:




On 14 jul. 2011, at 23:42, Hans Hagen<[email protected]>  wrote:

On 14-7-2011 3:23, Arno Trautmann wrote:

• Second, I'd like to print out the name of every defined
macro/primitive, i.e. I imagine a list with every character combination
after a \ that does not throw a undefd control sequence-error.
Why? Just because I wanted to know if it's possible … and if it is
possible at all, the odds are best with LuaTeX. Also, I'd like to
understand how macros are stored internally – but for that I have to
read some source code, I guess …

for name in pairs(tex.hashtokens()) do
    print(name)
end

Really? Did i write code for that?

Yes, as at some point - long ago already - we needed it for tracking down some problems (mkiv has some additional tracing based upon it already for quite a while, not that I ever use it nowadays).

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------

Reply via email to