LATEX-L Archives

Mailing list for the LaTeX3 project

LATEX-L@LISTSERV.UNI-HEIDELBERG.DE

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Morten Høgholm <[log in to unmask]>
Reply To:
Mailing list for the LaTeX3 project <[log in to unmask]>
Date:
Mon, 10 Dec 2007 13:07:56 +0100
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
On Mon, 10 Dec 2007 11:44:34 +0100, Taco Hoekwater wrote:

Hi Taco,

>>> the notes from the Oldenburg meeting mentions an \expanded primitive:
>>>   \expanded <general text>
>>>   Expandable command returning the full expansion
>>>   of the tokens in <general text>.
>>> So since this pretty much exists inside \pdfstrcmp as it is now, it  
>>> could
>
> Can someone please post an example of intended use in the
> l3 kernel in "plain"-style, just so I understand the usage?


I would assume the following should be equivalent except for the latter  
being expandable.

\def\cmd#1{\edef\tempa{#1}\expandafter\cmd\expandafter{\tempa}}

\def\cmd#1{\expandafter\cmd\expandafter{\expanded{#1}}}

> ConTeXt's \expanded macro expands its argument fully except
> for the very first item in it, which is handy for macros that
> need expanded arguments, so I assume the actual goals are very
> similar.

Yes, I think so too.

>> a) \expanded would be a nice name, but it clashes with ConTeXt.
>>    I remember trouble with \unexpanded :-(
>
> Hans and I think a) would be fine. c) is somewhat silly as it is
> not related to pdftex, and also a) combines nicely with the already
> present \unexpanded.

a) is what I was hoping for. :-)
-- 
Morten

ATOM RSS1 RSS2