Thanx Wolfgang! It works fine now ... it is great... I don't found (by google) any more information about \ifintable or \iftrialtypesetting flags. Can I find anywhere more information about them? I have now still one similar question. Is there any flag which indicate whether to use \expanded macro? I want to checked using the \expanded{} macro as input parameter of my own macros. for example: \def\tbline{\expanded{\bTR\bTD \myfirstcolumn \eTD\eTR}} \mytablerow{\tbline} \def\mytablerow#1{ ... I want testing here, if #1 contain \expanded{} macro ... } Thanx Jaroslav Dne 21.11.2010 15:32, Wolfgang Schuster napsal(a):
Am 21.11.2010 um 15:06 schrieb Jaroslav Hajtmar:
Hello ConTeXist,
I want my macro to act differently inside \bTABLE ... \eTABLE environment and otherwise outside of that environment. Is there any sign (flag) which can determine whether my macro run inside or outside the \bTABLE .. \eTABLE environment? Or do I have two similar versions of my macros (one for the table environment and the other for normal environment)
\ifintable but this is not available for tabulate, another alternative is to use \iftrialtypesetting
Explanation: To my macro work, I must have already expanded values inside table environment...
In this case you have to expand the whole table before it’s processed, e.g.
\bTABLE \bTR \expanded{\bTD ... \eTD} \eTR \eTABLE
Wolfgang