[Dev-luatex] Assignments in runtoks

luigi scarso luigi.scarso at gmail.com
Sun Sep 1 15:25:59 CEST 2019


On Sun, Sep 1, 2019 at 2:28 PM Hans Hagen <j.hagen at xs4all.nl> wrote:

> On 8/29/2019 2:42 PM, Marcel Fabian Kr├╝ger wrote:
> > Hello,
> >
> > in current versions of LuaTeX, `runtoks` does not preserve token lists
> > of ongoing assignments. Therefore running `runtoks` inside of `\edef`
> > or similar replace the definition with the defined value of the last
> > inner assignment.
>
> fixed in next luatex but in a different way as we then also need to
> support deeper nesting
>
> \toks2{\def\deepermacro{deeper}}
>
> \toks0{\def\innermacro{inner}\def\deepermacro{weird}\directlua{tex.runtoks(2)}}
>
> \edef\outermacro{outer\directlua{tex.runtoks(0)}}
>
> \meaning\innermacro \par
> \meaning\deepermacro\par
> \meaning\outermacro \par
>
>

done
------------------------------------------------------------------------
r7186 | luigi.scarso at gmail.com | 2019-09-01 15:25:05 +0200 (Sun, 01 Sep
2019) | 1 line

permit nested runtoks in more complex situations of nesting (HH)
------------------------------------------------------------------------


-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20190901/5db67da2/attachment.html>


More information about the dev-luatex mailing list