[NTG-pdftex] \expanded

Taco Hoekwater taco at elvenkind.com
Tue Dec 11 17:54:42 CET 2007



Heiko Oberdiek wrote:
> On Mon, Dec 10, 2007 at 01:26:14PM +0100, Martin Schröder wrote:
> 
>> 2007/12/10, Taco Hoekwater <taco at elvenkind.com>:
>>>> Biggest problem is probably a good name:
>>>> a) \expanded would be a nice name, [...]
>>> Hans and I think a) would be fine. [...]
>> I agree. A patch is welcome. :-)
> 
> Patch 885.

I suspect there will be a problem with

   \setvalue{begin\expanded{\getvalue{relax}}}

but have not time to delve into that right now.

I suspect this, because \directlua in luatex has similar
problems wrt. the 'current string', and I had to do
introduce a variable to save that, like this:

     procedure conv_toks;
     u:str_number;
     {...}

     u:=0;
     if str_start_macro(str_ptr)<pool_ptr then u:=make_string;
     {...... body of action here .......}
     if u<>0 then begin
       if str_ptr=u+1 then
         decr(str_ptr)
       else begin {copy old string to the top location}
          i:=0;
          str_room(length(u));
          while i<length(u) do
            str_pool[pool_ptr+i]:=str_pool[str_start[u]+i];
         end;
     end;

Best wishes,
Taco



More information about the ntg-pdftex mailing list