[luatex] Passing verbatim text to a function

Sietse Brouwer sbbrouwer at gmail.com
Thu Sep 30 00:18:18 CEST 2010


Hi Wolfgang, all,

On Tue, Sep 28, 2010 at 06:24, Wolfgang Schuster
<schuster.wolfgang at googlemail.com> wrote:
>
> \def\startone
>  {\begingroup
>   \obeylines
>   \dostartone}
>
> \def\dostartone#1\stopone
>  {\ctxlua{thirddata.one(...)}%
>   \endgroup}

That works. Marvellous. Thank-you very much. Apologies for the delay
in replying --- I was working on writing up your advice for the wiki,
with some comments and explantions for the novice. The result is here:
http://wiki.contextgarden.net/Programming_in_LuaTeX#Getting_text_into_LuaTex_verbatim
Should anyone feel like giving it a once-over: corrections are humbly solicited.

Kind regards,

Sietse Brouwer



More information about the luatex mailing list