[NTG-context] howto \getbuffer inside of \startTEX ... \stopTEX

h h extern pragma at wxs.nl
Sun Apr 3 21:32:36 CEST 2005


VnPenguin wrote:
> Hi all,
> I have a following code:
> ----------------------------------------------------------
> \startbuffer
> \bTABLE
> \bTR
>   \bTH title1 \eTH
>   \bTH title2 \eTH
> \eTR
> \bTR
>   \bTD data1 \eTD
>   \bTD data2 \eTD
> \eTR
> \eTABLE
> \stopbuffer
> 
> \startTEX
> \getbuffer
> \stopTEX
> 
> \getbuffer
> ----------------------------------------------------------
> But I got exactly the line "\getbuffer" in \startTEX ... \stopTEX
> instead of its content.
> How to get buffer in this case please.

just \typebuffer as in:

\setupcolors[state=start] \setuptyping[option=TEX]

\starttext

\startbuffer
\bTABLE
\bTR
   \bTH title1 \eTH
   \bTH title2 \eTH
\eTR
\bTR
   \bTD data1 \eTD
   \bTD data2 \eTD
\eTR
\eTABLE
\stopbuffer

\typebuffer

\getbuffer

\stoptext


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list