Re: [NTG-context] Buffer within a \def

2018-08-10 Thread Wolfgang Schuster



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
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Buffer within a \def

2018-08-10 Thread Procházka Lukáš Ing .

Hello,

I'm not very familiar with using buffers, so a basic question:

Is it possible to use buffers within a \def?

The following sample doesn't compile:


\def\T{
  \startbuffer[Buf]
a b ccc
d e f
  \stopbuffer
  \getbuffer[Buf]
}

\starttext
  \T

  A
\stoptext


What's wrong?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396

t2.mkiv
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___