[NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Alan BRASLAU
Hello,

I naively tried using
\bTD\numexpr\currentTABLErow\minusone\relax\dTD
in a TABLE.

As I do not master even simple calculations under TeX, I do not see
what I am missing in order to label TABLE rows, starting from 0?


(Row 1 is a heading, set off by \bTABLEhead\eTABLEhead, which is why I
am looking to subtract 1 from \currentTABLErow, but this does not
matter of course.

But perhaps the addressing of TABLE rows, including within \setupTABLE,
should or could handle this situation? This is a secondary question to
think about...)

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \bTD\numexpr\currentTABLErow\minusone\relax\eTD

2013-04-19 Thread Marco Patzer
On 2013–04–19 Alan BRASLAU wrote:

   \bTD\numexpr\currentTABLErow\minusone\relax\dTD

  \bTD\the\numexpr\currentTABLErow-1\relax\eTD


Marco


signature.asc
Description: Digital signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___