LATEX-L Archives

Mailing list for the LaTeX3 project


Options: Use Classic View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version: 1.0 (Apple Message framework v1081)
Content-Type: text/plain; charset=us-ascii
Date: Fri, 17 Sep 2010 14:51:30 +0930
Reply-To: Mailing list for the LaTeX3 project <[log in to unmask]>
Content-Transfer-Encoding: 8bit
Message-ID: <[log in to unmask]>
Sender: Mailing list for the LaTeX3 project <[log in to unmask]>
From: Will Robertson <[log in to unmask]>
Parts/Attachments: text/plain (36 lines)

In, say, breqn and unicode-math, we have a need to occasionally assign meanings to characters that may or may not be active at the time they're defined. The usual method for doing this is to use the \lowercase trick with something like

    \def ~{...}

But this requires that ~ is naturally active; and that's not necessarily always a good assumption (well, in expl3 isn't definitely not).

breqn uses a better technique:

  as above but with ^^@ instead of ~
\tmp % restore catcode

Do you think it would be a good addition to expl3 to formalise this sort of programming structure? I guess it would be something like

\begin_active_char:n {^^@}

which doesn't really gain us too much.

What if ^^@ were *always* active as part of the expl3 syntax?

Just thinking out loud, really. Comments, thoughts?

-- Will