From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/102282 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Text around a table (xtables) Date: Wed, 10 Oct 2018 20:09:10 +0200 Message-ID: References: <9c37cdfb-6651-c9dd-d73e-ca749e64e84d@gmx.es> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3895760231123414798==" X-Trace: blaine.gmane.org 1539194874 6853 195.159.176.226 (10 Oct 2018 18:07:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2018 18:07:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 10 20:07:50 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAItg-0001f3-Js for gctc-ntg-context-518@m.gmane.org; Wed, 10 Oct 2018 20:07:48 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B4B0478CFC; Wed, 10 Oct 2018 20:09:35 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EL2RrLJNsX87; Wed, 10 Oct 2018 20:09:34 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E418878D39; Wed, 10 Oct 2018 20:09:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 34F2378D35 for ; Wed, 10 Oct 2018 20:09:34 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZcsgWFp9R5Kt for ; Wed, 10 Oct 2018 20:09:33 +0200 (CEST) Original-Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 60A9B78CFC for ; Wed, 10 Oct 2018 20:09:23 +0200 (CEST) Original-Received: by mail-wm1-f53.google.com with SMTP id 193-v6so6711263wme.3 for ; Wed, 10 Oct 2018 11:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=w+B2yJ2XVPrv06xnYb5dgl0deHOy78HIGSjkL59GB8M=; b=TlyOme7CAXxz/kRDybR33GKsTusSBVVLX9I+3Lazr7KJx9eRYQ+vhIDIHAEesIj3Wr Kob62ejGOe5HbQm6L/jntApHCpVaAM4q0FYZLDjL4easNaQiwTyGsm3EJNmbpQg9Lbyc I1OiX0AIxeOmH+JJQUFyQJtaSlqILs0XxS7xg1AUUfISk1tKai+EaRkdNNOVMgM+EChW YPtjx8F1meyFWK0pMX20ofN6NFWgWIFx+QAu5pb8hlAkdQj3tShyMZ2A/HDgpMiny2mT UJd5ySgVZ9+zUSzhP49UNaXccMLM1NBiGLGeu58j4zt1jnoXZcvYfVGnfMFiNWE96H7N L2qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=w+B2yJ2XVPrv06xnYb5dgl0deHOy78HIGSjkL59GB8M=; b=sf26yetmXPkgZqCsxaBjWA+OcfmMhRR4bwvdTgDV1BOuOJJxmQBWInhVZJWgzt/nuv zbYsVepsCmbB6O52RUVvfZkehUhvpl6h0O7stXO2Kev1/lVBV/juFRP70/T0s6sDxONB nidpB0Hf66a1bSobjsIAom8TGr4sADHK67X2mYTwgTnOuunV8sY29wI6KyJ+qMEaCTjJ OcJ69cansMAfC22/+P1sonzAHNUCfBn6sA0zXmP7jsv+kt9q99m2QDkjnxW4whc824hI 3ktl8YcTs7b5ibQt866VvyECSLDzRcORsfI2Ft8Gs2QhvaZ2qdmpq8TlDkVDL77wHjjw 3kSg== X-Gm-Message-State: ABuFfohQFk6pW4avlm/o6PtTsMgr2fy5B8Rfyd5b3MmjZ/ZudMTjdOW7 bySnSdZy53qzGxxtlGh3vxvtmMFH9Ku9tuVg3qbLwYsH X-Google-Smtp-Source: ACcGV60pkqln85kbGL8u6App63BMfA4m8WyVvg4ulw6sCWJ7AlQPEWcjsACa0paXOr9NO3KqxwZIY5PHHe1dk8ba80k= X-Received: by 2002:a1c:7508:: with SMTP id o8-v6mr1834270wmc.76.1539194962726; Wed, 10 Oct 2018 11:09:22 -0700 (PDT) In-Reply-To: <9c37cdfb-6651-c9dd-d73e-ca749e64e84d@gmx.es> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.20 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:102282 Archived-At: --===============3895760231123414798== Content-Type: multipart/alternative; boundary="000000000000fe529c0577e3c098" --000000000000fe529c0577e3c098 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Pablo, Thank you, I thought that indicating width =3D 1.7cm, the size of the cells would have been 1.7cm. Fabrice Le mer. 10 oct. 2018 =C3=A0 19:46, Pablo Rodriguez a =C3=A9c= rit : > On 10/10/18 7:26 PM, Fabrice Couvreur wrote: > > Hello, > > Why is the text wrapping around the board or far too far ? > > Hi Fabrice, > > replace the following command: > > \startxtable[align=3D{middle,lohi}] > > It works now. It is rather weird that the total width for the table is > 1.7cm and one of its cells is 3.5cm. > > I hope it helps, > > Pablo > > > > Thank you. > > Fabrice > > > > \definefloat > > [recipe] > > [figure] > > > > \setupfloat > > [recipe] > > [default=3D{right,none}] > > > > \starttext > > \placerecipe{}{% > > \startxtable[align=3D{middle,lohi},width=3D1.7 > > cm] > > \startxrow[background=3Dcolor,backgroundcolor=3Dgray] > > \startxcell[width=3D3.5cm,frame=3Doff,align=3D{middle,right}, > > background=3Dcolor,backgroundcolor=3Dwhite] > > Consommation pour la production de 1 UM > > \hfill\startMPcode drawarrow > > (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; > \stopMPcode > > \stopxcell > > \startxcell > > Ind. > > \stopxcell > > \startxcell > > Agri. > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[background=3Dcolor,backgroundcolor=3Dgray] > > Ind. > > \stopxcell > > \startxcell > > 0,5 > > \stopxcell > > \startxcell > > 0,2 > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[background=3Dcolor,backgroundcolor=3Dgray] > > Agri. > > \stopxcell > > \startxcell > > 0,2 > > \stopxcell > > \startxcell > > 0,6 > > \stopxcell > > \stopxrow > > \startxrow > > \startxcell[nx=3D3,frame=3Doff,align=3D{right}] > > Lecture du tableau : pour la production d'un bien =C3=A9quivalen= t =C3=A0 1 > > UM, l'industrie consomme l'=C3=A9quivalent de 0,5 UM de sa propre produ= ction > > et l'=C3=A9quivalent de 0,2 UM de la production de l'agriculture. > > \stopxcell > > \stopxrow > > \stopxtable > > } > > \dorecurse{10}{\input knuth} > > \stoptext > > > > > _________________________________________________________________________= __________ > > 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://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > > > -- > http://www.ousia.tk > > _________________________________________________________________________= __________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ --000000000000fe529c0577e3c098 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Pablo,
Thank you, I = thought that indicating width =3D 1.7cm, the size of the cells would have b= een 1.7cm.
Fabrice

Le=C2=A0mer. 10 oct. 2018 =C3=A0=C2=A019:= 46, Pablo Rodriguez <oinos@gmx.es>= ; a =C3=A9crit=C2=A0:
On 10/10/18 7= :26 PM, Fabrice Couvreur wrote:
> Hello,
> Why is the text wrapping around the board or far too far ?

Hi Fabrice,

replace the following command:

=C2=A0 =C2=A0 \startxtable[align=3D{middle,lohi}]

It works now. It is rather weird that the total width for the table is
1.7cm and one of its cells is 3.5cm.

I hope it helps,

Pablo


> Thank you.
> Fabrice
>
> \definefloat
> =C2=A0=C2=A0=C2=A0 [recipe]
> =C2=A0=C2=A0=C2=A0 [figure]
>
> =C2=A0 \setupfloat
> =C2=A0=C2=A0=C2=A0 [recipe]
> =C2=A0=C2=A0=C2=A0 [default=3D{right,none}]
>
> =C2=A0 \starttext
> \placerecipe{}{%
> =C2=A0 \startxtable[align=3D{middle,lohi},width=3D1.7
> =C2=A0=C2=A0=C2=A0 cm]
> =C2=A0=C2=A0=C2=A0 \startxrow[background=3Dcolor,backgroundcolor=3Dgra= y]
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell[width=3D3.5cm,frame=3Doff,a= lign=3D{middle,right},
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 background=3Dcolor,backgroundcolor=3Dwhit= e]
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Consommation pour la produc= tion de 1 UM
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \hfill\startMPcode drawarro= w
> (0,0)--(0,0.35cm)--(0.35cm,0.35cm)withpen pencircle scaled 1bp; \stopM= Pcode
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ind.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Agri.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0 \stopxrow
> =C2=A0=C2=A0=C2=A0 \startxrow
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell[background=3Dcolor,backgrou= ndcolor=3Dgray]
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Ind.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0,5
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0,2
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0 \stopxrow
> =C2=A0=C2=A0=C2=A0 \startxrow
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell[background=3Dcolor,backgrou= ndcolor=3Dgray]
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Agri.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0,2
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 0,6
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0 \stopxrow
> =C2=A0=C2=A0=C2=A0 \startxrow
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \startxcell[nx=3D3,frame=3Doff,align=3D= {right}]
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Lecture du tableau : pour la prod= uction d'un bien =C3=A9quivalent =C3=A0 1
> UM, l'industrie consomme l'=C3=A9quivalent de 0,5 UM de sa pro= pre production
> et l'=C3=A9quivalent de 0,2 UM de la production de l'agricultu= re.
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \stopxcell
> =C2=A0=C2=A0=C2=A0 \stopxrow
> =C2=A0 \stopxtable
> }=C2=A0=C2=A0=C2=A0
> \dorecurse{10}{\input knuth}=C2=A0
> \stoptext
>
> ______________________________________________________________________= _____________
> 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/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>


--
http:/= /www.ousia.tk
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000fe529c0577e3c098-- --===============3895760231123414798== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3895760231123414798==--