[NTG-context] embeddedxtable

Wolfgang Schuster schuster.wolfgang at gmail.com
Mon May 25 12:59:21 CEST 2015

> Am 25.05.2015 um 11:26 schrieb Meer, H. van der <H.vanderMeer at uva.nl>:
>> On 24 May 2015, at 22:53, Wolfgang Schuster <schuster.wolfgang at gmail.com <mailto:schuster.wolfgang at 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.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150525/0ffe63d0/attachment.html>

More information about the ntg-context mailing list