> Am 25.05.2015 um 11:26 schrieb Meer, H. van der <h.vanderm...@uva.nl>:
> 
> 
> 
>> On 24 May 2015, at 22:53, Wolfgang Schuster <schuster.wolfg...@gmail.com 
>> <mailto:schuster.wolfg...@gmail.com>> wrote:
>> 
>> 
>> The spaces in the output are produced by the spaces between the tags 
>> (\xmlstrip doesn’t seem to work)
>> and you have to use a combination of \removeunwantedspaces and \ignorespaces 
>> to remove them.
>> 
> 
> 
> There is something I do not understand and I hope you can explain this. The 
> table is typeset by the \xmlflush{#1} in the table macro:
> 
> \startxmlsetups xmlcommon:table
> Z\bgroup
> \setupxtable[% Setup defaults
> leftmargindistance=0pt,rightmargindistance=0pt,
> offset=2pt,height=fit,width=fit,
> align={center,lohi},columndistance=0pt]
> \setupxtableparameters{#1}
> \startlocationbox{#1}
> \removeunwantedspaces
> \startembeddedxtable X\xmlflush{#1}Y\stopembeddedxtable
> \ignorespaces
> \stoplocationbox
> \egroup
> \stopxmlsetups
> 
> The "X" and "Y"  have been placed around the \xmlflush to see what happens. 
> Why do I see them 3 times? It looks as if  the embeddedxtable-line is called 
> 3 times (or maybe 4 times once for each row with the last call vanishing). 
> However, the table macro itself is called only once, the "Z" at the beginning 
> proves that. I cannot explain this. 

This is normal and needed for the calculation of the cell widths and heights.

This mechanism is called trial typesetting and used by a few mechanism (e.g. 
float captions) to get the dimensions of the content.

Wolfgang

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to