[NTG-context] embeddedxtable

Meer, H. van der H.vanderMeer at uva.nl
Mon May 25 11:06:09 CEST 2015


> On 24 May 2015, at 22:53, Wolfgang Schuster <schuster.wolfgang at gmail.com> wrote:
>
>
>> Am 24.05.2015 um 21:33 schrieb Meer, H. van der <H.vanderMeer at uva.nl>:
>>
>>> In this case you have to provide a working minimal example.
>>>
>>> Wolfgang
>>
>> Here an example as minimal as I could construct.
>
> 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.
>
> To center your table this isn’t necessary when you replace \midaligned with a framedtext
> environment in combination with “location=middle” or use a float command like \placefigure.
>
>
> \startxmlsetups xmlcommon
>        \xmlsetsetup{\xmldocument}{table|tr|td}{xmlcommon:*}
> \stopxmlsetups
>
> \xmlregistersetup{xmlcommon}
>
> \startxmlsetups xmlcommon:table
> %     \removeunwantedspaces
>        \startembeddedxtable
>                \xmlflush{#1}
>        \stopembeddedxtable
> %     \ignorespaces
> \stopxmlsetups
>
> \startxmlsetups xmlcommon:tr
> %     \removeunwantedspaces
>        \startxrow
>                \xmlflush{#1}
>        \stopxrow
> %     \ignorespaces
> \stopxmlsetups
>
> \startxmlsetups xmlcommon:td
> %     \removeunwantedspaces
>        \startxcell
>                \xmlflush{#1}
>        \stopxcell
> %     \ignorespaces
> \stopxmlsetups
>

Input from file or from buffer doesn't make a difference.
I inserted the \removeunwantedspaces and \ignorespaces, as you suggested. The xmlstrip macros do not make any difference, either active or commented out. Then there still remains extra space at the end. See below.







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150525/ed9db35e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtablespace.pdf
Type: application/pdf
Size: 16875 bytes
Desc: xtablespace.pdf
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150525/ed9db35e/attachment-0001.pdf>


More information about the ntg-context mailing list