Re: [NTG-context] help needed with special macro
On Mon, 21 Feb 2005, Hans Hagen wrote: > \def\MyMacro#1{% >\getgparameters[XXX][#1] >\global\advance\MyVersion by 1 >\bTR \bTR\expanded{\bTD \the\MyVersion \eTD} \expanded{\bTD \XXXDate > \eTD}\eTR > } Thank you very much, Hans! In fact, I should have tried just a bit more: I tried \expanded{\bTR ... \eTR} and \bTD \expanded{...} \eTD, but not that one... Thank you also for contrastcolor=green ! Cheers, Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] help needed with special macro
Peter Münster wrote: 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 \def\MyMacro#1{% \getgparameters[XXX][#1] \global\advance\MyVersion by 1 \bTR \bTR\expanded{\bTD \the\MyVersion \eTD} \expanded{\bTD \XXXDate \eTD}\eTR } - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] help needed with special macro
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/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] help needed with special macro
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 Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] help needed with special macro
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 This one of the possibilities, that I've tried, but I get this error: ERROR: Use of \dododecrement doesn't match its definition. Peter -- http://pmrb.free.fr/contact/ ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] help needed with special macro
Peter Münster wrote: Hello, could someone help me please with the following little macro? Every line in the table should be different, but all are as the last one. I've tried a lot with commands like \expanded{} or \expandafter etc, but without results... Perhaps the only solution is a temporary file? \newcount\MyVersion \def\MyMacro#1{% \getgparameters[XXX][#1] \global\advance\MyVersion by 1 \bTR\bTD \the\MyVersion \eTD \bTD \XXXDate \eTD\eTR \expanded{\bTR ... \eTR} } table data is collected and processed four times so you need to freeze the content Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context