From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91602 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: embeddedxtable Date: Mon, 25 May 2015 12:59:21 +0200 Message-ID: References: <9527BE42-D3DE-4097-819D-692A094F270A@uva.nl> <839037E1-7F7B-4633-A1C4-7B67436EDCD9@uva.nl> <63FDF106-1AE7-4F27-9198-97AD3976602D@uva.nl> <0D7ACAF3-3C6F-4FAD-BB61-4CC74397AEC5@uva.nl> <16315B5D-F25C-4703-83EE-4A3E1C2A762D@uva.nl> <81F6CB25-5CDC-404F-BEC1-38E82499C1D4@uva.nl> <9B18EC0F-CCBF-483F-875E-5F097EBD8908@uva.nl> <6B34903A-A803-4592-91BC-23CD84E80CE7@gmail.com> <43EA352E-AA79-454C-A7DE-3BF9D680EA35@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============0369773619==" X-Trace: ger.gmane.org 1432551822 28616 80.91.229.3 (25 May 2015 11:03:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 May 2015 11:03:42 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon May 25 13:03:30 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YwqAM-0007Fm-56 for gctc-ntg-context-518@m.gmane.org; Mon, 25 May 2015 13:03:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9338C101FE for ; Mon, 25 May 2015 13:03:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Mv5jFXblXAEv for ; Mon, 25 May 2015 13:03:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4117910238 for ; Mon, 25 May 2015 13:02:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5931B101E8 for ; Mon, 25 May 2015 13:02:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id CX8hEFRttpcs for ; Mon, 25 May 2015 13:02:33 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id 25F75101FA for ; Mon, 25 May 2015 12:59:27 +0200 (CEST) Original-Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4PAxQTR028080 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 25 May 2015 12:59:26 +0200 Original-Received: by wibt6 with SMTP id t6so45530583wib.0 for ; Mon, 25 May 2015 03:59:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=0Wv+KaucK85F7E01wTjhrZS0e813GJNdIUuukez0TIU=; b=O6l+U1yyDJe6EUYocL/H77QaGUD2Er0FLIjYmeT4Pq2xRIVR0bKgpjp3oZFLAQXXZj xqdQKcgVKwkFjmh+yZvlasv6UnyUHFBeNOLR3YCem5lXi00CSL9QSOkDzQBfDIuJw51K P1zVANF2rNAvdafy5yiEpto8B+q3kdhCdAyEFwv2f7uni9LM4JoDEFdrUnaNUBeNJZQs /gyjswMT+O28Af6qWylUK9Gn8MjGOpl/CTWBogN+DUVxrcaBiYjM+gc1EGeB3PMMiam9 kdrp84WU/lQbZt6THoH2MIA489a5eoBmOdStHGBQUfS0ye9xCzhQ4eAdY1sdBY/TZQsF /jxQ== X-Received: by 10.194.216.230 with SMTP id ot6mr39435492wjc.68.1432551566056; Mon, 25 May 2015 03:59:26 -0700 (PDT) Original-Received: from keima.localdomain (x2f2ad87.dyn.telefonica.de. [2.242.173.135]) by mx.google.com with ESMTPSA id hn7sm16213981wjc.16.2015.05.25.03.59.23 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 May 2015 03:59:25 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c05::236; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OwaXqyK - 9e0aee0acd83 - 20150525 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c05::236 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c05::236; envelope-from=; helo=mail-wi0-x236.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91602 Archived-At: --===============0369773619== Content-Type: multipart/alternative; boundary="Apple-Mail=_9FB36425-854E-4A77-BA90-2F72A55E886B" --Apple-Mail=_9FB36425-854E-4A77-BA90-2F72A55E886B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 25.05.2015 um 11:26 schrieb Meer, H. van der : >=20 >=20 >=20 >> On 24 May 2015, at 22:53, Wolfgang Schuster = > = wrote: >>=20 >>=20 >> The spaces in the output are produced by the spaces between the tags = (\xmlstrip doesn=E2=80=99t seem to work) >> and you have to use a combination of \removeunwantedspaces and = \ignorespaces to remove them. >>=20 >=20 >=20 > 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: >=20 > \startxmlsetups xmlcommon:table > Z\bgroup > \setupxtable[% Setup defaults > leftmargindistance=3D0pt,rightmargindistance=3D0pt, > offset=3D2pt,height=3Dfit,width=3Dfit, > align=3D{center,lohi},columndistance=3D0pt] > \setupxtableparameters{#1} > \startlocationbox{#1} > \removeunwantedspaces > \startembeddedxtable X\xmlflush{#1}Y\stopembeddedxtable > \ignorespaces > \stoplocationbox > \egroup > \stopxmlsetups >=20 > 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.=20 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 --Apple-Mail=_9FB36425-854E-4A77-BA90-2F72A55E886B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 25.05.2015 um 11:26 schrieb Meer, H. van der <H.vanderMeer@uva.nl>:



On 24 May 2015, at 22:53, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:


The spaces in the output are produced by the spaces between the tags = (\xmlstrip doesn=E2=80=99t 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=3D0pt,rightmargindista= nce=3D0pt,
offset=3D2pt,height=3Dfit,width=3Dfit,
align=3D{center,lohi},columndistance=3D0p= t]
\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

= --Apple-Mail=_9FB36425-854E-4A77-BA90-2F72A55E886B-- --===============0369773619== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============0369773619==--