ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* feature request: \everytrypass
@ 2006-04-20 10:49 Vit Zyka
  2006-04-20 11:01 ` Peter Rolf
  2006-04-20 21:55 ` Hans Hagen
  0 siblings, 2 replies; 5+ messages in thread
From: Vit Zyka @ 2006-04-20 10:49 UTC (permalink / raw)


Dear ConTeXters,

I am counting occurence of some macro in the text. Problem is when this 
macro is inside \bTABLE (and may be somewhere else). Due to try passes 
the increment is counter is incremented more then once and the result is 
multiplied.

It is possible to implement some \everytrypass in which user can (e.g.) 
null incrementing? Or there is some another solution?

Thanks
Vit

Minimal example:
-----------------------------------------------
\newcount\C
\def\doIncrement{\global\advance\C by1\relax}

% \def\nullIncrement{\let\doIncrement\relax}
% \appendtoks \nullIncrement to \everytrypass

\starttext
   \bTABLE
     \bTR\bTD Counter\doIncrement\eTD\eTR
   \eTABLE
   \message{ <<Counter=\the\C>> }%
\stoptext
------------------------------------------------

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

end of thread, other threads:[~2006-04-21 20:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-20 10:49 feature request: \everytrypass Vit Zyka
2006-04-20 11:01 ` Peter Rolf
2006-04-21 12:57   ` Vit Zyka
2006-04-21 20:06     ` Hans Hagen
2006-04-20 21:55 ` 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).