ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* saving cell content in macro
@ 2005-10-13 16:36 Peter Münster
  2005-10-24 23:27 ` Hans Hagen Test
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Münster @ 2005-10-13 16:36 UTC (permalink / raw)


Hello,
how could I save the cell of a table in a macro?
I tried the following, but it does not work:

\starttext

\def\StartScanning#1\StopScanning{\def\MyValue{#1}}

\starttable[|b{\StartScanning}la{\StopScanning}|l|]
\NC 123 \NC 456 \NC\AR
\stoptable

Test: \MyValue

\stoptext

TIA for any help, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: saving cell content in macro
  2005-10-13 16:36 saving cell content in macro Peter Münster
@ 2005-10-24 23:27 ` Hans Hagen Test
  0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen Test @ 2005-10-24 23:27 UTC (permalink / raw)


� wrote:

>Hello,
>how could I save the cell of a table in a macro?
>I tried the following, but it does not work:
>
>\starttext
>
>\def\StartScanning#1\StopScanning{\def\MyValue{#1}}
>
>\starttable[|b{\StartScanning}la{\StopScanning}|l|]
>\NC 123 \NC 456 \NC\AR
>\stoptable
>
>Test: \MyValue
>
>\stoptext
>
>TIA for any help, Peter
>  
>
teh a/b keys are too tricky for this (preamble mess), so maybe do 
something:

\starttext

\def\GC#1 {#1\gdef\MyValue{#1}}

\starttable[|l|l|]
\GC 123 \NC 456 \NC\AR
\stoptable

Test: \MyValue

\stoptext

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

end of thread, other threads:[~2005-10-24 23:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-13 16:36 saving cell content in macro Peter Münster
2005-10-24 23:27 ` Hans Hagen Test

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