From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: Text around a table (xtables)
Date: Wed, 10 Oct 2018 19:46:11 +0200 [thread overview]
Message-ID: <9c37cdfb-6651-c9dd-d73e-ca749e64e84d@gmx.es> (raw)
In-Reply-To: <CACyK-eoT2Xr16XKZSe4ZDFkbnNU_i0sy4wzWW_rJvci-yEHTBg@mail.gmail.com>
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={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={right,none}]
>
> \starttext
> \placerecipe{}{%
> \startxtable[align={middle,lohi},width=1.7
> cm]
> \startxrow[background=color,backgroundcolor=gray]
> \startxcell[width=3.5cm,frame=off,align={middle,right},
> background=color,backgroundcolor=white]
> 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=color,backgroundcolor=gray]
> Ind.
> \stopxcell
> \startxcell
> 0,5
> \stopxcell
> \startxcell
> 0,2
> \stopxcell
> \stopxrow
> \startxrow
> \startxcell[background=color,backgroundcolor=gray]
> Agri.
> \stopxcell
> \startxcell
> 0,2
> \stopxcell
> \startxcell
> 0,6
> \stopxcell
> \stopxrow
> \startxrow
> \startxcell[nx=3,frame=off,align={right}]
> Lecture du tableau : pour la production d'un bien équivalent à 1
> UM, l'industrie consomme l'équivalent de 0,5 UM de sa propre production
> et l'équivalent 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
___________________________________________________________________________________
next prev parent reply other threads:[~2018-10-10 17:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-10 17:26 Fabrice Couvreur
2018-10-10 17:46 ` Pablo Rodriguez [this message]
2018-10-10 18:09 ` Fabrice Couvreur
2018-10-10 18:29 ` Wolfgang Schuster
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c37cdfb-6651-c9dd-d73e-ca749e64e84d@gmx.es \
--to=oinos@gmx.es \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).