ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* howto \getbuffer inside of \startTEX ... \stopTEX
@ 2005-04-03  8:19 VnPenguin
  2005-04-03 19:32 ` h h extern
  0 siblings, 1 reply; 3+ messages in thread
From: VnPenguin @ 2005-04-03  8:19 UTC (permalink / raw)


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.

Thank you,
Q.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: howto \getbuffer inside of \startTEX ... \stopTEX
  2005-04-03  8:19 howto \getbuffer inside of \startTEX ... \stopTEX VnPenguin
@ 2005-04-03 19:32 ` h h extern
  2005-04-04 16:46   ` VnPenguin
  0 siblings, 1 reply; 3+ messages in thread
From: h h extern @ 2005-04-03 19:32 UTC (permalink / raw)


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
-----------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: howto \getbuffer inside of \startTEX ... \stopTEX
  2005-04-03 19:32 ` h h extern
@ 2005-04-04 16:46   ` VnPenguin
  0 siblings, 0 replies; 3+ messages in thread
From: VnPenguin @ 2005-04-04 16:46 UTC (permalink / raw)


On Apr 3, 2005 9:32 PM, h h extern <pragma@wxs.nl> wrote:
> 
> 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
> 
Oh, works well.
Thank you a lot,
Regards,
Q.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-04 16:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-03  8:19 howto \getbuffer inside of \startTEX ... \stopTEX VnPenguin
2005-04-03 19:32 ` h h extern
2005-04-04 16:46   ` VnPenguin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).