[NTG-context] help needed with special macro

Peter Münster pmlists at free.fr
Fri Feb 18 19:52:44 CET 2005


On Fri, 18 Feb 2005, Hans Hagen wrote:

> Peter Münster wrote:
> > On Thu, 17 Feb 2005, Hans Hagen wrote:
> > 
> >>     \expanded{\bTR ... \eTR}
> >>
> >>table data is collected and processed four times so you need to freeze
> >>the content
> 
> can you send me a small sample

Of course:

\newcount\MyVersion
\def\MyMacro#1{%
  \getgparameters[XXX][#1]
  \global\advance\MyVersion by 1
  \expanded{\bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR}
}
\starttext
\bTABLE
\bTR \bTD Version \eTD \bTD Date \eTD \eTR
\MyMacro{Date=1.2.2005}
\MyMacro{Date=3.4.2005}
\MyMacro{Date=5.6.2005}
\eTABLE
\stoptext

Peter

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


More information about the ntg-context mailing list