[NTG-context] Buffers vs. \def
Procházka Lukáš Ing. - Pontex s. r. o.
LPr at pontex.cz
Wed Apr 18 11:48:45 CEST 2012
Hello,
a question - I'm just curious:
What is advantage (or maybe intension) of using buffers over \def?
Compare:
----
\def\BufA{This is buffer A.}
\startbuffer[BufB]
This is buffer B.
\stopbuffer
\starttext
\BufA
\getbuffer[BufB]
\ifx\BufC\undefined No buffer C.\else\BufC\fi
\stoptext
----
Both ways give the required effect.
Moreover, when using \def, I can also test its existence (maybe it's also possible with buffers, but I don't know how).
Best regards,
Lukas
--
Ing. Lukáš Procházka [mailto:LPr at pontex.cz]
Pontex s. r. o. [mailto:pontex at pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4
Tel: +420 244 062 238
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Buf.mkiv
Type: application/octet-stream
Size: 179 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120418/1f2fcb9d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t-Buf.pdf
Type: application/pdf
Size: 6365 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20120418/1f2fcb9d/attachment.pdf>
More information about the ntg-context
mailing list