* command definition
@ 2004-06-24 12:26 jimarin
2004-06-25 16:19 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: jimarin @ 2004-06-24 12:26 UTC (permalink / raw)
is it possible anything like the following ?
\def\MySomeTable#1%
{
\startbuffer
#1
\stopbuffer
}
\MySomeTable{
\starttable
blah blah blah...
\stoptable
}
I find it difficult...
Jose
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: command definition
2004-06-24 12:26 command definition jimarin
@ 2004-06-25 16:19 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2004-06-25 16:19 UTC (permalink / raw)
jimarin@bayesinf.com wrote:
>is it possible anything like the following ?
>
>\def\MySomeTable#1%
>{
>\startbuffer
>#1
>\stopbuffer
>}
>
>
buffers use catcode trickery, so cannot be used in macros'; you can use
\setbuffer[name]{...} with \getbuffer[name]
>\MySomeTable{
>\starttable
>blah blah blah...
>\stoptable
>}
>
>I find it difficult...
>
>
how about:
\definebuffer[Table]
\starttext
\startTable
test
\stopTable
\getTable
\getTable
\getTable
\stoptext
and
\definetabletemplate[Table][|||]
\starttext
\starttable[Table]
\NC test \NC test \NC \AR
\NC x \NC y \NC \AR
\stoptable
\stoptext
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-25 16:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-24 12:26 command definition jimarin
2004-06-25 16:19 ` Hans Hagen
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).