From: Fabrice Couvreur <fabrice1.couvreur@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Adjust the dimensions of a sub-table in an extreme table ?
Date: Thu, 30 Aug 2018 22:16:31 +0200 [thread overview]
Message-ID: <CACyK-eq0k=Td4mnA2P9nv4Uz-RHZqJ9og36QbJ8D=xdcnpmLqQ@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 3655 bytes --]
Hello,
In the main table there are three sub-tables. How to adapt the dimensions
of the second and third sub-tables to that of the first sub-table ?
Thank you
Fabrice
\unexpanded\def\euros#1{#1\,€}
\setuplayout
[height=middle,
width=middle,
backspace=2cm,
topspace=10mm,
bottomspace=10mm,
header=10mm,
footer=10mm,
footerdistance=10mm,
headerdistance=10mm]
\starttext
\startxtable
\startxrow
\startxcell[width=0.6\textwidth]
\stopxcell
\startxcell[width=0.4\textwidth]
{\darkred Document 2 :} {\bf Ticket de caisse taché du 29/08/2015.}
\startxtable[align={lohi,middle}]
\startxrow
\startxcell
{\bf Qté}
\stopxcell
\startxcell
{\bf Article}
\stopxcell
\startxcell
{\bf Prix H.T (\euros{})}
\stopxcell
\stopxrow
\startxrow
\startxcell
10
\stopxcell
\startxcell
Bouteille eau minérale 33 cl
\stopxcell
\startxcell
\stopxcell
\stopxrow
\startxrow
\startxcell
2
\stopxcell
\startxcell
Sandwich (consommation sur place)
\stopxcell
\startxcell
\stopxcell
\stopxrow
\startxrow
\startxcell
1
\stopxcell
\startxcell
Tee-shirt
\stopxcell
\startxcell
\stopxcell
\stopxrow
\startxrow
\startxcell
\stopxcell
\startxcell[align=left]
Total H.T.
\stopxcell
\startxcell
{\bf 24,8}
\stopxcell
\stopxrow
\stopxtable
\startxtable[align={lohi,middle}]
\startxrow
\startxcell
{\bf T.V.A}
\stopxcell
\startxcell
\stopxcell
\startxcell
{\bf Taxe(\euros{}) }
\stopxcell
\stopxrow
\startxrow
\startxcell
5,5\,\%
\stopxcell
\startxcell
\stopxcell
\startxcell
\stopxcell
\stopxrow
\startxrow
\startxcell
10\,\%
\stopxcell
\startxcell
\stopxcell
\startxcell
\stopxcell
\stopxrow
\startxrow
\startxcell
20\,\%
\stopxcell
\startxcell[align=left]
Total T.V.A.
\stopxcell
\startxcell
{\bf 2,8}
\stopxcell
\stopxrow
\stopxtable
\startxtable[align={lohi,middle}]
\startxrow
\startxcell
{\bf Total}
\stopxcell
\startxcell
\stopxcell
\startxcell
{\bf Prix T.T.C. (\euros{})}
\stopxcell
\stopxrow
\startxrow
\startxcell
\stopxcell
\startxcell[align=left]
13 articles
\stopxcell
\startxcell
{\bf 28,5}
\stopxcell
\stopxrow
\stopxtable
\stopxcell
\stopxrow
\stopxtable
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 6137 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
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 reply other threads:[~2018-08-30 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-30 20:16 Fabrice Couvreur [this message]
2018-08-30 20:49 ` Pablo Rodriguez
2018-08-31 15:53 ` Fabrice Couvreur
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='CACyK-eq0k=Td4mnA2P9nv4Uz-RHZqJ9og36QbJ8D=xdcnpmLqQ@mail.gmail.com' \
--to=fabrice1.couvreur@gmail.com \
--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).