[NTG-context] Buffer within a \def

Wolfgang Schuster wolfgang.schuster.lists at gmail.com
Fri Aug 10 13:41:06 CEST 2018



Procházka Lukáš Ing. schrieb am 10.08.18 um 13:31:
> Hello,
>
> I'm not very familiar with using buffers, so a basic question:
>
> Is it possible to use buffers within a \def?

No.

> The following sample doesn't compile:
>
> ----
> \def\T{
>   \startbuffer[Buf]
>     a b ccc
>     d e f
>   \stopbuffer
>   \getbuffer[Buf]
> }

\def\T
   {\setbuffer[Buf]a b ccc d e f\endbuffer
    \getbuffer[Buf]}

Wolfgang


More information about the ntg-context mailing list