From: Taco Hoekwater <taco@elvenkind.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: esoteric macro expansion bug in t-bib?
Date: Tue, 11 Oct 2005 08:44:55 +0200 [thread overview]
Message-ID: <434B5F67.30502@elvenkind.com> (raw)
In-Reply-To: <436B1EF9@webmail.colostate.edu>
Idris Samawi Hamid wrote:
> That finally ocurred to me after you all were sleep yesterday-) Yes, the
> \unexpanded solves things.
>
> I'm curious: how exactly does \unexpanded work? Is this an eTeX primitive?
\unexpanded is macro, but it normally expands to \protected, which is an
eTeX primitive indeed. In 'normal' tex, it uses a macro approach to
achieve a similar effect: it defines two macros instead of one. There
will be
\def\IBAR{\donottest\doIBAR}
and it's accompagnying
\def\doIBAR% ... your definition
ConTeXt internals toggle the definition of \donottest depending on
the surrounding environment, using \let\donottest\noexpand or
\let\donottest\relax etc. This achieves the same effect as the
eTeX primitive, but is not as robust.
Cheers, Taco
next prev parent reply other threads:[~2005-10-11 6:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-10 17:33 Idris Samawi Hamid
2005-10-11 6:44 ` Taco Hoekwater [this message]
2005-10-11 10:59 ` Christopher Creutzig
-- strict thread matches above, loose matches on Subject: below --
2005-10-10 1:22 Idris Samawi Hamid
2005-10-10 0:18 Idris Samawi Hamid
2005-10-10 7:15 ` Christopher Creutzig
2005-10-10 7:53 ` Taco Hoekwater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=434B5F67.30502@elvenkind.com \
--to=taco@elvenkind.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).